special_storage_policy.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  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 ELECTRON_SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_
  5. #define ELECTRON_SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_
  6. #include "storage/browser/quota/special_storage_policy.h"
  7. namespace electron {
  8. class SpecialStoragePolicy : public storage::SpecialStoragePolicy {
  9. public:
  10. SpecialStoragePolicy();
  11. // storage::SpecialStoragePolicy implementation.
  12. bool IsStorageProtected(const GURL& origin) override;
  13. bool IsStorageUnlimited(const GURL& origin) override;
  14. bool IsStorageDurable(const GURL& origin) override;
  15. bool HasIsolatedStorage(const GURL& origin) override;
  16. bool IsStorageSessionOnly(const GURL& origin) override;
  17. bool HasSessionOnlyOrigins() override;
  18. network::DeleteCookiePredicate CreateDeleteCookieOnExitPredicate() override;
  19. protected:
  20. ~SpecialStoragePolicy() override;
  21. };
  22. } // namespace electron
  23. #endif // ELECTRON_SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_