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

Unified Diff: webkit/appcache/appcache_quota_client.cc

Issue 7533013: Quota: Add quota::StorageType to the GetOriginsCallback definition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing onto today's ToT. Created 9 years, 5 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/appcache/appcache_quota_client.cc
diff --git a/webkit/appcache/appcache_quota_client.cc b/webkit/appcache/appcache_quota_client.cc
index 14bdb2b9a694172a47fa88c0ce3f268cbbe33be5..db41d5e688f62f896f9f5bd9b90c4972929bdc7e 100644
--- a/webkit/appcache/appcache_quota_client.cc
+++ b/webkit/appcache/appcache_quota_client.cc
@@ -103,7 +103,7 @@ void AppCacheQuotaClient::GetOriginsForHost(
GetOriginsCallback* callback_ptr) {
DCHECK(callback_ptr);
if (host.empty()) {
- callback_ptr->Run(std::set<GURL>());
+ callback_ptr->Run(std::set<GURL>(), type);
delete callback_ptr;
return;
}
@@ -166,7 +166,7 @@ void AppCacheQuotaClient::GetOriginsHelper(
scoped_ptr<GetOriginsCallback> callback(callback_ptr);
if (!service_) {
- callback->Run(std::set<GURL>());
+ callback->Run(std::set<GURL>(), type);
return;
}
@@ -179,7 +179,7 @@ void AppCacheQuotaClient::GetOriginsHelper(
}
if (type == quota::kStorageTypePersistent) {
- callback->Run(std::set<GURL>());
+ callback->Run(std::set<GURL>(), type);
return;
}
@@ -190,7 +190,7 @@ void AppCacheQuotaClient::GetOriginsHelper(
if (opt_host.empty() || iter->first.host() == opt_host)
origins.insert(iter->first);
}
- callback->Run(origins);
+ callback->Run(origins, type);
}
void AppCacheQuotaClient::ProcessPendingRequests() {
@@ -220,7 +220,8 @@ void AppCacheQuotaClient::AbortPendingRequests() {
pending_usage_requests_.pop_front();
}
while (!pending_origins_requests_.empty()) {
- pending_origins_requests_.front().callback->Run(std::set<GURL>());
+ pending_origins_requests_.front().callback->Run(std::set<GURL>(),
+ pending_origins_requests_.front().type);
delete pending_origins_requests_.front().callback;
pending_origins_requests_.pop_front();
}

Powered by Google App Engine
This is Rietveld 408576698