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

Unified Diff: content/renderer/render_view.cc

Issue 7438001: Cleanup: Make quota dispatcher code independent from WebKit types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix 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
« no previous file with comments | « content/common/quota_messages.h ('k') | webkit/quota/quota_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view.cc
diff --git a/content/renderer/render_view.cc b/content/renderer/render_view.cc
index 988328a305276384a844591c8553d9a769b46343..fedaf13ae37de0bfeea9a1cdc694c305dbc05b63 100644
--- a/content/renderer/render_view.cc
+++ b/content/renderer/render_view.cc
@@ -2896,7 +2896,9 @@ void RenderView::queryStorageUsageAndQuota(
return;
}
ChildThread::current()->quota_dispatcher()->QueryStorageUsageAndQuota(
- GURL(origin.toString()), type, callbacks);
+ GURL(origin.toString()),
+ static_cast<quota::StorageType>(type),
+ QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
}
void RenderView::requestStorageQuota(
@@ -2912,7 +2914,9 @@ void RenderView::requestStorageQuota(
return;
}
ChildThread::current()->quota_dispatcher()->RequestStorageQuota(
- routing_id(), GURL(origin.toString()), type, requested_size, callbacks);
+ routing_id(), GURL(origin.toString()),
+ static_cast<quota::StorageType>(type), requested_size,
+ QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
}
// WebKit::WebPageSerializerClient implementation ------------------------------
« no previous file with comments | « content/common/quota_messages.h ('k') | webkit/quota/quota_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698