special_storage_policy.cc 957 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 "services/network/public/cpp/session_cookie_delete_predicate.h"
  6. namespace electron {
  7. SpecialStoragePolicy::SpecialStoragePolicy() = default;
  8. SpecialStoragePolicy::~SpecialStoragePolicy() = default;
  9. bool SpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
  10. return true;
  11. }
  12. bool SpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
  13. return true;
  14. }
  15. bool SpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
  16. return true;
  17. }
  18. bool SpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
  19. return false;
  20. }
  21. bool SpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
  22. return false;
  23. }
  24. bool SpecialStoragePolicy::HasSessionOnlyOrigins() {
  25. return false;
  26. }
  27. } // namespace electron