OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_QUOTA_QUOTA_CLIENT_H_ | 5 #ifndef WEBKIT_BROWSER_QUOTA_QUOTA_CLIENT_H_ |
6 #define WEBKIT_BROWSER_QUOTA_QUOTA_CLIENT_H_ | 6 #define WEBKIT_BROWSER_QUOTA_QUOTA_CLIENT_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Note it is safe to fire the callback after the QuotaClient is destructed. | 62 // Note it is safe to fire the callback after the QuotaClient is destructed. |
63 virtual void GetOriginsForHost(StorageType type, | 63 virtual void GetOriginsForHost(StorageType type, |
64 const std::string& host, | 64 const std::string& host, |
65 const GetOriginsCallback& callback) = 0; | 65 const GetOriginsCallback& callback) = 0; |
66 | 66 |
67 // Called by the QuotaManager. | 67 // Called by the QuotaManager. |
68 // Note it is safe to fire the callback after the QuotaClient is destructed. | 68 // Note it is safe to fire the callback after the QuotaClient is destructed. |
69 virtual void DeleteOriginData(const GURL& origin, | 69 virtual void DeleteOriginData(const GURL& origin, |
70 StorageType type, | 70 StorageType type, |
71 const DeletionCallback& callback) = 0; | 71 const DeletionCallback& callback) = 0; |
| 72 |
| 73 virtual bool DoesSupport(StorageType type) const = 0; |
72 }; | 74 }; |
73 | 75 |
74 // TODO(dmikurube): Replace it to std::vector for efficiency. | 76 // TODO(dmikurube): Replace it to std::vector for efficiency. |
75 typedef std::list<QuotaClient*> QuotaClientList; | 77 typedef std::list<QuotaClient*> QuotaClientList; |
76 | 78 |
77 } // namespace quota | 79 } // namespace quota |
78 | 80 |
79 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_CLIENT_H_ | 81 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_CLIENT_H_ |
OLD | NEW |