| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef APPS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_ |
| 6 #define APPS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_ |
| 7 | 7 |
| 8 #include "webkit/browser/quota/special_storage_policy.h" | 8 #include "webkit/browser/quota/special_storage_policy.h" |
| 9 | 9 |
| 10 namespace apps { | 10 namespace extensions { |
| 11 | 11 |
| 12 // A simple storage policy for app_shell which does not limit storage | 12 // A simple storage policy for app_shell which does not limit storage |
| 13 // capabilities and aims to be as permissive as possible. | 13 // capabilities and aims to be as permissive as possible. |
| 14 class ShellSpecialStoragePolicy : public quota::SpecialStoragePolicy { | 14 class ShellSpecialStoragePolicy : public quota::SpecialStoragePolicy { |
| 15 public: | 15 public: |
| 16 ShellSpecialStoragePolicy(); | 16 ShellSpecialStoragePolicy(); |
| 17 | 17 |
| 18 // quota::SpecialStoragePolicy implementation. | 18 // quota::SpecialStoragePolicy implementation. |
| 19 virtual bool IsStorageProtected(const GURL& origin) OVERRIDE; | 19 virtual bool IsStorageProtected(const GURL& origin) OVERRIDE; |
| 20 virtual bool IsStorageUnlimited(const GURL& origin) OVERRIDE; | 20 virtual bool IsStorageUnlimited(const GURL& origin) OVERRIDE; |
| 21 virtual bool IsStorageSessionOnly(const GURL& origin) OVERRIDE; | 21 virtual bool IsStorageSessionOnly(const GURL& origin) OVERRIDE; |
| 22 virtual bool CanQueryDiskSize(const GURL& origin) OVERRIDE; | 22 virtual bool CanQueryDiskSize(const GURL& origin) OVERRIDE; |
| 23 virtual bool IsFileHandler(const std::string& extension_id) OVERRIDE; | 23 virtual bool IsFileHandler(const std::string& extension_id) OVERRIDE; |
| 24 virtual bool HasIsolatedStorage(const GURL& origin) OVERRIDE; | 24 virtual bool HasIsolatedStorage(const GURL& origin) OVERRIDE; |
| 25 virtual bool HasSessionOnlyOrigins() OVERRIDE; | 25 virtual bool HasSessionOnlyOrigins() OVERRIDE; |
| 26 | 26 |
| 27 protected: | 27 protected: |
| 28 virtual ~ShellSpecialStoragePolicy(); | 28 virtual ~ShellSpecialStoragePolicy(); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace apps | 31 } // namespace extensions |
| 32 | 32 |
| 33 #endif // APPS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H | 33 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H |
| OLD | NEW |