special_storage_policy.h 1.0 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 ATOM_BROWSER_SPECIAL_STORAGE_POLICY_H_
  5. #define ATOM_BROWSER_SPECIAL_STORAGE_POLICY_H_
  6. #include "storage/browser/quota/special_storage_policy.h"
  7. namespace atom {
  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::SessionCleanupCookieStore::DeleteCookiePredicate
  19. CreateDeleteCookieOnExitPredicate() override;
  20. protected:
  21. ~SpecialStoragePolicy() override;
  22. };
  23. } // namespace atom
  24. #endif // ATOM_BROWSER_SPECIAL_STORAGE_POLICY_H_