shell_special_storage_policy.cc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #include "extensions/shell/browser/shell_special_storage_policy.h"
  5. namespace extensions {
  6. ShellSpecialStoragePolicy::ShellSpecialStoragePolicy() {
  7. }
  8. ShellSpecialStoragePolicy::~ShellSpecialStoragePolicy() {
  9. }
  10. bool ShellSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
  11. return true;
  12. }
  13. bool ShellSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
  14. return true;
  15. }
  16. bool ShellSpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
  17. // The plan is to forbid extensions from acquiring the durable storage
  18. // permission because they can specify 'unlimitedStorage' in the manifest.
  19. return false;
  20. }
  21. bool ShellSpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
  22. return false;
  23. }
  24. bool ShellSpecialStoragePolicy::HasSessionOnlyOrigins() {
  25. return false;
  26. }
  27. bool ShellSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
  28. return false;
  29. }
  30. } // namespace extensions