| 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_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ | 5 #ifndef WEBKIT_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ |
| 6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ | 6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 quota::StorageType type, | 43 quota::StorageType type, |
| 44 const GetUsageCallback& callback) OVERRIDE; | 44 const GetUsageCallback& callback) OVERRIDE; |
| 45 virtual void GetOriginsForType(quota::StorageType type, | 45 virtual void GetOriginsForType(quota::StorageType type, |
| 46 const GetOriginsCallback& callback) OVERRIDE; | 46 const GetOriginsCallback& callback) OVERRIDE; |
| 47 virtual void GetOriginsForHost(quota::StorageType type, | 47 virtual void GetOriginsForHost(quota::StorageType type, |
| 48 const std::string& host, | 48 const std::string& host, |
| 49 const GetOriginsCallback& callback) OVERRIDE; | 49 const GetOriginsCallback& callback) OVERRIDE; |
| 50 virtual void DeleteOriginData(const GURL& origin, | 50 virtual void DeleteOriginData(const GURL& origin, |
| 51 quota::StorageType type, | 51 quota::StorageType type, |
| 52 const DeletionCallback& callback) OVERRIDE; | 52 const DeletionCallback& callback) OVERRIDE; |
| 53 virtual bool DoesSupport(quota::StorageType type) const OVERRIDE; |
| 53 | 54 |
| 54 private: | 55 private: |
| 55 friend class AppCacheService; // for NotifyAppCacheIsDestroyed | 56 friend class AppCacheService; // for NotifyAppCacheIsDestroyed |
| 56 friend class AppCacheStorageImpl; // for NotifyAppCacheIsReady | 57 friend class AppCacheStorageImpl; // for NotifyAppCacheIsReady |
| 57 friend class AppCacheQuotaClientTest; | 58 friend class AppCacheQuotaClientTest; |
| 58 | 59 |
| 59 WEBKIT_STORAGE_BROWSER_EXPORT | 60 WEBKIT_STORAGE_BROWSER_EXPORT |
| 60 explicit AppCacheQuotaClient(AppCacheService* service); | 61 explicit AppCacheQuotaClient(AppCacheService* service); |
| 61 | 62 |
| 62 void DidDeleteAppCachesForOrigin(int rv); | 63 void DidDeleteAppCachesForOrigin(int rv); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 85 AppCacheService* service_; | 86 AppCacheService* service_; |
| 86 bool appcache_is_ready_; | 87 bool appcache_is_ready_; |
| 87 bool quota_manager_is_destroyed_; | 88 bool quota_manager_is_destroyed_; |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(AppCacheQuotaClient); | 90 DISALLOW_COPY_AND_ASSIGN(AppCacheQuotaClient); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace appcache | 93 } // namespace appcache |
| 93 | 94 |
| 94 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ | 95 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ |
| OLD | NEW |