special_storage_policy.h 964 B

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 BRIGHTRAY_BROWSER_SPECIAL_STORAGE_POLICY_H_
  5. #define BRIGHTRAY_BROWSER_SPECIAL_STORAGE_POLICY_H_
  6. #include "storage/browser/quota/special_storage_policy.h"
  7. namespace brightray {
  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. protected:
  19. ~SpecialStoragePolicy() override;
  20. };
  21. } // namespace brightray
  22. #endif // BRIGHTRAY_BROWSER_SPECIAL_STORAGE_POLICY_H_