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

Unified Diff: webkit/quota/usage_tracker.h

Issue 8079004: Retrieve per host storage usage from QuotaManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: webkit/quota/usage_tracker.h
diff --git a/webkit/quota/usage_tracker.h b/webkit/quota/usage_tracker.h
index 258ef160fc2e735611d4a4725e475fefea883efe..c3782adf74ccc132bffabd0788db8b51c0b93d27 100644
--- a/webkit/quota/usage_tracker.h
+++ b/webkit/quota/usage_tracker.h
@@ -43,6 +43,7 @@ class UsageTracker : public QuotaTaskObserver {
void UpdateUsageCache(QuotaClient::ID client_id,
const GURL& origin,
int64 delta);
+ void GetCachedHostsUsage(std::map<std::string, int64>* host_usage) const;
void GetCachedOrigins(std::set<GURL>* origins) const;
bool IsWorking() const {
return global_usage_callbacks_.HasCallbacks() ||
@@ -92,6 +93,7 @@ class ClientUsageTracker : public SpecialStoragePolicy::Observer,
void GetGlobalUsage(GlobalUsageCallback* callback);
void GetHostUsage(const std::string& host, HostUsageCallback* callback);
void UpdateUsageCache(const GURL& origin, int64 delta);
+ void GetCachedHostsUsage(std::map<std::string, int64>* host_usage) const;
void GetCachedOrigins(std::set<GURL>* origins) const;
private:
@@ -110,7 +112,7 @@ class ClientUsageTracker : public SpecialStoragePolicy::Observer,
void GatherGlobalUsageComplete();
void GatherHostUsageComplete(const std::string& host);
- int64 GetCachedHostUsage(const std::string& host);
+ int64 GetCachedHostUsage(const std::string& host) const;
int64 GetCachedGlobalUnlimitedUsage();
virtual void OnSpecialStoragePolicyChanged() OVERRIDE;
void NoopHostUsageCallback(

Powered by Google App Engine
This is Rietveld 408576698