special_storage_policy.cc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 "shell/browser/special_storage_policy.h"
  5. #include "base/bind.h"
  6. #include "base/callback.h"
  7. namespace electron {
  8. SpecialStoragePolicy::SpecialStoragePolicy() {}
  9. SpecialStoragePolicy::~SpecialStoragePolicy() {}
  10. bool SpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
  11. return true;
  12. }
  13. bool SpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
  14. return true;
  15. }
  16. bool SpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
  17. return true;
  18. }
  19. bool SpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
  20. return false;
  21. }
  22. bool SpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
  23. return false;
  24. }
  25. bool SpecialStoragePolicy::HasSessionOnlyOrigins() {
  26. return false;
  27. }
  28. network::SessionCleanupCookieStore::DeleteCookiePredicate
  29. SpecialStoragePolicy::CreateDeleteCookieOnExitPredicate() {
  30. return network::SessionCleanupCookieStore::DeleteCookiePredicate();
  31. }
  32. } // namespace electron