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_USAGE_TRACKER_H_ | 5 #ifndef WEBKIT_QUOTA_USAGE_TRACKER_H_ |
6 #define WEBKIT_QUOTA_USAGE_TRACKER_H_ | 6 #define WEBKIT_QUOTA_USAGE_TRACKER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "webkit/quota/quota_callbacks.h" |
18 #include "webkit/quota/quota_client.h" | 19 #include "webkit/quota/quota_client.h" |
19 #include "webkit/quota/quota_task.h" | 20 #include "webkit/quota/quota_task.h" |
20 #include "webkit/quota/quota_types.h" | 21 #include "webkit/quota/quota_types.h" |
21 #include "webkit/quota/special_storage_policy.h" | 22 #include "webkit/quota/special_storage_policy.h" |
22 | 23 |
23 namespace quota { | 24 namespace quota { |
24 | 25 |
25 class ClientUsageTracker; | 26 class ClientUsageTracker; |
26 | 27 |
27 // A helper class that gathers and tracks the amount of data stored in | 28 // A helper class that gathers and tracks the amount of data stored in |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 HostUsageAccumulatorMap host_usage_accumulators_; | 177 HostUsageAccumulatorMap host_usage_accumulators_; |
177 | 178 |
178 scoped_refptr<SpecialStoragePolicy> special_storage_policy_; | 179 scoped_refptr<SpecialStoragePolicy> special_storage_policy_; |
179 | 180 |
180 DISALLOW_COPY_AND_ASSIGN(ClientUsageTracker); | 181 DISALLOW_COPY_AND_ASSIGN(ClientUsageTracker); |
181 }; | 182 }; |
182 | 183 |
183 } // namespace quota | 184 } // namespace quota |
184 | 185 |
185 #endif // WEBKIT_QUOTA_USAGE_TRACKER_H_ | 186 #endif // WEBKIT_QUOTA_USAGE_TRACKER_H_ |
OLD | NEW |