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_QUOTA_CLIENT_H_ | 5 #ifndef WEBKIT_QUOTA_QUOTA_CLIENT_H_ |
6 #define WEBKIT_QUOTA_QUOTA_CLIENT_H_ | 6 #define WEBKIT_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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual void GetOriginsForHost(StorageType type, | 59 virtual void GetOriginsForHost(StorageType type, |
60 const std::string& host, | 60 const std::string& host, |
61 GetOriginsCallback* callback) = 0; | 61 GetOriginsCallback* callback) = 0; |
62 | 62 |
63 // Called by the QuotaManager. | 63 // Called by the QuotaManager. |
64 virtual void DeleteOriginData(const GURL& origin, | 64 virtual void DeleteOriginData(const GURL& origin, |
65 StorageType type, | 65 StorageType type, |
66 DeletionCallback* callback) = 0; | 66 DeletionCallback* callback) = 0; |
67 }; | 67 }; |
68 | 68 |
| 69 // TODO(dmikurube): Replace it to std::vector for efficiency. |
69 typedef std::list<QuotaClient*> QuotaClientList; | 70 typedef std::list<QuotaClient*> QuotaClientList; |
70 | 71 |
71 } // namespace quota | 72 } // namespace quota |
72 | 73 |
73 #endif // WEBKIT_QUOTA_QUOTA_CLIENT_H_ | 74 #endif // WEBKIT_QUOTA_QUOTA_CLIENT_H_ |
OLD | NEW |