| 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 <set> | 8 #include <set> |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback_old.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "webkit/quota/quota_types.h" | 14 #include "webkit/quota/quota_types.h" |
| 15 | 15 |
| 16 namespace quota { | 16 namespace quota { |
| 17 | 17 |
| 18 // An abstract interface for quota manager clients. | 18 // An abstract interface for quota manager clients. |
| 19 // Each storage API must provide an implementation of this interface and | 19 // Each storage API must provide an implementation of this interface and |
| 20 // register it to the quota manager. | 20 // register it to the quota manager. |
| 21 // 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. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void GetOriginsForHost(StorageType type, | 57 virtual void GetOriginsForHost(StorageType type, |
| 58 const std::string& host, | 58 const std::string& host, |
| 59 GetOriginsCallback* callback) = 0; | 59 GetOriginsCallback* callback) = 0; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 typedef std::list<QuotaClient*> QuotaClientList; | 62 typedef std::list<QuotaClient*> QuotaClientList; |
| 63 | 63 |
| 64 } // namespace quota | 64 } // namespace quota |
| 65 | 65 |
| 66 #endif // WEBKIT_QUOTA_QUOTA_CLIENT_H_ | 66 #endif // WEBKIT_QUOTA_QUOTA_CLIENT_H_ |
| OLD | NEW |