| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ | 5 #ifndef WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ |
| 6 #define WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ | 6 #define WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // Protected storage is not subject to removal by the browsing data remover. | 26 // Protected storage is not subject to removal by the browsing data remover. |
| 27 virtual bool IsStorageProtected(const GURL& origin) = 0; | 27 virtual bool IsStorageProtected(const GURL& origin) = 0; |
| 28 | 28 |
| 29 // Unlimited storage is not subject to 'quotas'. | 29 // Unlimited storage is not subject to 'quotas'. |
| 30 virtual bool IsStorageUnlimited(const GURL& origin) = 0; | 30 virtual bool IsStorageUnlimited(const GURL& origin) = 0; |
| 31 | 31 |
| 32 // Checks if extension identified with |extension_id| is registered as | 32 // Checks if extension identified with |extension_id| is registered as |
| 33 // file handler. | 33 // file handler. |
| 34 virtual bool IsFileHandler(const std::string& extension_id) = 0; | 34 virtual bool IsFileHandler(const std::string& extension_id) = 0; |
| 35 | 35 |
| 36 // Some origins are only allowed to store session-only data which is deleted |
| 37 // when the session ends. |
| 38 virtual bool IsStorageSessionOnly(const GURL& origin) = 0; |
| 39 |
| 36 protected: | 40 protected: |
| 37 friend class base::RefCountedThreadSafe<SpecialStoragePolicy>; | 41 friend class base::RefCountedThreadSafe<SpecialStoragePolicy>; |
| 38 virtual ~SpecialStoragePolicy(); | 42 virtual ~SpecialStoragePolicy(); |
| 39 }; | 43 }; |
| 40 | 44 |
| 41 } // namespace quota | 45 } // namespace quota |
| 42 | 46 |
| 43 #endif // WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ | 47 #endif // WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ |
| OLD | NEW |