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

Unified Diff: webkit/quota/quota_types.h

Issue 8079004: Retrieve per host storage usage from QuotaManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: The final version to land Created 9 years, 2 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/quota_types.h
diff --git a/webkit/quota/quota_types.h b/webkit/quota/quota_types.h
index 5e12536ef58010dc508d46fa33328b00d7fc6b14..a07c14cf86f377189c9f0299313f36a88eecdf05 100644
--- a/webkit/quota/quota_types.h
+++ b/webkit/quota/quota_types.h
@@ -36,6 +36,9 @@ enum QuotaStatusCode {
kQuotaStatusUnknown = -1,
};
+struct UsageInfo;
+typedef std::vector<UsageInfo> UsageInfoEntries;
+
// Common callback types that are used throughout in the quota module.
typedef Callback2<StorageType, int64>::Type UsageCallback;
typedef Callback3<StorageType, int64, int64>::Type GlobalUsageCallback;
@@ -53,6 +56,7 @@ typedef Callback2<QuotaStatusCode,
int64>::Type AvailableSpaceCallback;
typedef Callback1<QuotaStatusCode>::Type StatusCallback;
typedef Callback2<const std::set<GURL>&, StorageType>::Type GetOriginsCallback;
+typedef Callback1<const UsageInfoEntries&>::Type GetUsageInfoCallback;
// Simple template wrapper for a callback queue.
template <typename CallbackType>
@@ -272,6 +276,7 @@ class CallbackQueueMap4
}
};
+typedef CallbackQueueMap1<UsageCallback*, GURL, int64> OriginUsageCallbackMap;
typedef CallbackQueueMap3<HostUsageCallback*, std::string,
const std::string&,
StorageType, int64> HostUsageCallbackMap;

Powered by Google App Engine
This is Rietveld 408576698