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

Unified Diff: content/child/quota_dispatcher.cc

Issue 142903002: Quota: Return a pair of usage and granted_quota on requesting quota. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « content/child/quota_dispatcher.h ('k') | content/common/quota_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/quota_dispatcher.cc
diff --git a/content/child/quota_dispatcher.cc b/content/child/quota_dispatcher.cc
index e6b7114500221f8f4b3de18c07cb9893394b4f82..85004a9c2de6cd4a448a0946cd5f5ad5af3df929 100644
--- a/content/child/quota_dispatcher.cc
+++ b/content/child/quota_dispatcher.cc
@@ -42,7 +42,7 @@ class WebStorageQuotaDispatcherCallback : public QuotaDispatcher::Callback {
virtual void DidQueryStorageUsageAndQuota(int64 usage, int64 quota) OVERRIDE {
callbacks_->didQueryStorageUsageAndQuota(usage, quota);
}
- virtual void DidGrantStorageQuota(int64 granted_quota) OVERRIDE {
+ virtual void DidGrantStorageQuota(int64 usage, int64 granted_quota) OVERRIDE {
callbacks_->didGrantStorageQuota(granted_quota);
}
virtual void DidFail(quota::QuotaStatusCode error) OVERRIDE {
@@ -141,10 +141,11 @@ QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(
void QuotaDispatcher::DidGrantStorageQuota(
int request_id,
+ int64 current_usage,
int64 granted_quota) {
Callback* callback = pending_quota_callbacks_.Lookup(request_id);
DCHECK(callback);
- callback->DidGrantStorageQuota(granted_quota);
+ callback->DidGrantStorageQuota(current_usage, granted_quota);
pending_quota_callbacks_.Remove(request_id);
}
« no previous file with comments | « content/child/quota_dispatcher.h ('k') | content/common/quota_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698