shell_special_storage_policy.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_
  5. #define EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_
  6. #include "storage/browser/quota/special_storage_policy.h"
  7. namespace extensions {
  8. // A simple storage policy for app_shell which does not limit storage
  9. // capabilities and aims to be as permissive as possible.
  10. class ShellSpecialStoragePolicy : public storage::SpecialStoragePolicy {
  11. public:
  12. ShellSpecialStoragePolicy();
  13. // storage::SpecialStoragePolicy implementation.
  14. bool IsStorageProtected(const GURL& origin) override;
  15. bool IsStorageUnlimited(const GURL& origin) override;
  16. bool IsStorageDurable(const GURL& origin) override;
  17. bool IsStorageSessionOnly(const GURL& origin) override;
  18. bool HasIsolatedStorage(const GURL& origin) override;
  19. bool HasSessionOnlyOrigins() override;
  20. protected:
  21. ~ShellSpecialStoragePolicy() override;
  22. };
  23. } // namespace extensions
  24. #endif // EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_