Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: storage/browser/quota/usage_tracker.h

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « storage/browser/quota/storage_observer.cc ('k') | storage/browser/quota/usage_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_QUOTA_USAGE_TRACKER_H_ 5 #ifndef STORAGE_BROWSER_QUOTA_USAGE_TRACKER_H_
6 #define WEBKIT_BROWSER_QUOTA_USAGE_TRACKER_H_ 6 #define STORAGE_BROWSER_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 "storage/browser/quota/quota_callbacks.h"
18 #include "storage/browser/quota/quota_client.h"
19 #include "storage/browser/quota/quota_task.h"
20 #include "storage/browser/quota/special_storage_policy.h"
21 #include "storage/browser/storage_browser_export.h"
22 #include "storage/common/quota/quota_types.h"
17 #include "url/gurl.h" 23 #include "url/gurl.h"
18 #include "webkit/browser/quota/quota_callbacks.h"
19 #include "webkit/browser/quota/quota_client.h"
20 #include "webkit/browser/quota/quota_task.h"
21 #include "webkit/browser/quota/special_storage_policy.h"
22 #include "webkit/browser/storage_browser_export.h"
23 #include "webkit/common/quota/quota_types.h"
24 24
25 namespace storage { 25 namespace storage {
26 26
27 class ClientUsageTracker; 27 class ClientUsageTracker;
28 class StorageMonitor; 28 class StorageMonitor;
29 29
30 // A helper class that gathers and tracks the amount of data stored in 30 // A helper class that gathers and tracks the amount of data stored in
31 // all quota clients. 31 // all quota clients.
32 // An instance of this class is created per storage type. 32 // An instance of this class is created per storage type.
33 class STORAGE_EXPORT UsageTracker : public QuotaTaskObserver { 33 class STORAGE_EXPORT UsageTracker : public QuotaTaskObserver {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 GlobalUsageCallbackQueue global_usage_callback_; 192 GlobalUsageCallbackQueue global_usage_callback_;
193 HostUsageAccumulatorMap host_usage_accumulators_; 193 HostUsageAccumulatorMap host_usage_accumulators_;
194 194
195 scoped_refptr<SpecialStoragePolicy> special_storage_policy_; 195 scoped_refptr<SpecialStoragePolicy> special_storage_policy_;
196 196
197 DISALLOW_COPY_AND_ASSIGN(ClientUsageTracker); 197 DISALLOW_COPY_AND_ASSIGN(ClientUsageTracker);
198 }; 198 };
199 199
200 } // namespace storage 200 } // namespace storage
201 201
202 #endif // WEBKIT_BROWSER_QUOTA_USAGE_TRACKER_H_ 202 #endif // STORAGE_BROWSER_QUOTA_USAGE_TRACKER_H_
OLDNEW
« no previous file with comments | « storage/browser/quota/storage_observer.cc ('k') | storage/browser/quota/usage_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698