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

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: 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/quota_types.h
diff --git a/webkit/quota/quota_types.h b/webkit/quota/quota_types.h
index 5e12536ef58010dc508d46fa33328b00d7fc6b14..88e4c8215729879d684ed58f68c5782e5c4f7ab8 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 GetUsageCallback;
kinuko 2011/10/03 07:49:20 the name GetUsageCallback is used in QuotaClients
mnaganov (inactive) 2011/10/04 03:00:40 Done.
// 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