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

Unified Diff: webkit/quota/usage_tracker.h

Issue 16067003: [Quota] Refine usage handling in ClientUsageTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: buildfix Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/quota/usage_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/usage_tracker.h
diff --git a/webkit/quota/usage_tracker.h b/webkit/quota/usage_tracker.h
index 383dd1c1a589ff53ef006c6c14a6d9504cc0bb21..1dfb8254fd79d745bd03a8b9e04a8441d88d33c3 100644
--- a/webkit/quota/usage_tracker.h
+++ b/webkit/quota/usage_tracker.h
@@ -90,6 +90,7 @@ class ClientUsageTracker : public SpecialStoragePolicy::Observer,
int64 non_cached_usage)> HostUsageAccumulator;
typedef base::Callback<void(const GURL& origin,
int64 usage)> OriginUsageAccumulator;
+ typedef std::map<std::string, std::set<GURL> > OriginSetByHost;
ClientUsageTracker(UsageTracker* tracker,
QuotaClient* client,
@@ -114,7 +115,6 @@ class ClientUsageTracker : public SpecialStoragePolicy::Observer,
typedef std::set<std::string> HostSet;
typedef std::map<GURL, int64> UsageMap;
typedef std::map<std::string, UsageMap> HostUsageMap;
- typedef std::map<std::string, std::set<GURL> > OriginSetByHost;
struct AccumulateInfo {
int pending_jobs;
@@ -163,13 +163,14 @@ class ClientUsageTracker : public SpecialStoragePolicy::Observer,
QuotaClient* client_;
const StorageType type_;
- int64 global_usage_;
+ int64 global_limited_usage_;
int64 global_unlimited_usage_;
bool global_usage_retrieved_;
HostSet cached_hosts_;
HostUsageMap cached_usage_by_host_;
- OriginSetByHost non_cached_origins_by_host_;
+ OriginSetByHost non_cached_limited_origins_by_host_;
+ OriginSetByHost non_cached_unlimited_origins_by_host_;
GlobalUsageCallbackQueue global_usage_callback_;
HostUsageAccumulatorMap host_usage_accumulators_;
« no previous file with comments | « no previous file | webkit/quota/usage_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698