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

Unified Diff: webkit/browser/quota/quota_manager.cc

Issue 23240002: Backend for DevTools quota managements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/browser/quota/quota_manager.cc
diff --git a/webkit/browser/quota/quota_manager.cc b/webkit/browser/quota/quota_manager.cc
index ee5f81bdc0a85f46b65dc3776e3f31ad46a1e0f8..142cd22c58f43f70b099d0e1122a2b307ca15366 100644
--- a/webkit/browser/quota/quota_manager.cc
+++ b/webkit/browser/quota/quota_manager.cc
@@ -1076,6 +1076,25 @@ void QuotaManager::GetHostUsage(const std::string& host,
GetUsageTracker(type)->GetHostUsage(host, callback);
}
+void QuotaManager::GetHostUsage(const std::string& host,
+ StorageType type,
+ QuotaClient::ID client_id,
+ const UsageCallback& callback) {
+ LazyInitialize();
+ ClientUsageTracker* tracker =
+ GetUsageTracker(type)->GetClientTracker(client_id);
+ if (!tracker) {
+ callback.Run(0);
+ return;
+ }
+ tracker->GetHostUsage(host, callback);
+}
+
+bool QuotaManager::IsTrackingHostUsage(StorageType type,
+ QuotaClient::ID client_id) const {
+ return GetUsageTracker(type)->GetClientTracker(client_id) != 0;
kinuko 2013/09/23 21:41:05 We're in chromium but not in blink, can we use NUL
SeRya 2013/09/24 09:55:15 Done.
+}
+
void QuotaManager::GetStatistics(
std::map<std::string, std::string>* statistics) {
DCHECK(statistics);
« webkit/browser/quota/quota_manager.h ('K') | « webkit/browser/quota/quota_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698