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_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ |
6 #define WEBKIT_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ | 6 #define WEBKIT_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 20 matching lines...) Expand all Loading... |
31 // itself when both the quota manager and the appcache service have | 31 // itself when both the quota manager and the appcache service have |
32 // been destroyed. | 32 // been destroyed. |
33 class AppCacheQuotaClient : public quota::QuotaClient { | 33 class AppCacheQuotaClient : public quota::QuotaClient { |
34 public: | 34 public: |
35 typedef std::deque<base::Closure> RequestQueue; | 35 typedef std::deque<base::Closure> RequestQueue; |
36 | 36 |
37 virtual ~AppCacheQuotaClient(); | 37 virtual ~AppCacheQuotaClient(); |
38 | 38 |
39 // QuotaClient method overrides | 39 // QuotaClient method overrides |
40 virtual ID id() const OVERRIDE; | 40 virtual ID id() const OVERRIDE; |
41 virtual void OnQuotaManagerDestroyed(); | 41 virtual void OnQuotaManagerDestroyed() OVERRIDE; |
42 virtual void GetOriginUsage(const GURL& origin, | 42 virtual void GetOriginUsage(const GURL& origin, |
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, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 AppCacheService* service_; | 84 AppCacheService* service_; |
85 bool appcache_is_ready_; | 85 bool appcache_is_ready_; |
86 bool quota_manager_is_destroyed_; | 86 bool quota_manager_is_destroyed_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(AppCacheQuotaClient); | 88 DISALLOW_COPY_AND_ASSIGN(AppCacheQuotaClient); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace appcache | 91 } // namespace appcache |
92 | 92 |
93 #endif // WEBKIT_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ | 93 #endif // WEBKIT_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ |
OLD | NEW |