OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/time.h" | |
14 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
15 #include "webkit/quota/quota_types.h" | 14 #include "webkit/quota/quota_types.h" |
16 | 15 |
17 namespace quota { | 16 namespace quota { |
18 | 17 |
19 // An abstract interface for quota manager clients. | 18 // An abstract interface for quota manager clients. |
20 // Each storage API must provide an implementation of this interface and | 19 // Each storage API must provide an implementation of this interface and |
21 // register it to the quota manager. | 20 // register it to the quota manager. |
22 // All the methods are assumed to be called on the IO thread in the browser. | 21 // All the methods are assumed to be called on the IO thread in the browser. |
23 class QuotaClient { | 22 class QuotaClient { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 StorageType type, | 65 StorageType type, |
67 const DeletionCallback& callback) = 0; | 66 const DeletionCallback& callback) = 0; |
68 }; | 67 }; |
69 | 68 |
70 // TODO(dmikurube): Replace it to std::vector for efficiency. | 69 // TODO(dmikurube): Replace it to std::vector for efficiency. |
71 typedef std::list<QuotaClient*> QuotaClientList; | 70 typedef std::list<QuotaClient*> QuotaClientList; |
72 | 71 |
73 } // namespace quota | 72 } // namespace quota |
74 | 73 |
75 #endif // WEBKIT_QUOTA_QUOTA_CLIENT_H_ | 74 #endif // WEBKIT_QUOTA_QUOTA_CLIENT_H_ |
OLD | NEW |