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

Unified Diff: content/worker/webworkerclient_proxy.cc

Issue 7012007: Chrome side of having the WebKit FileSystem API use WebPermissionClient for checking if using fil... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/worker/webworkerclient_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/worker/webworkerclient_proxy.cc
===================================================================
--- content/worker/webworkerclient_proxy.cc (revision 85048)
+++ content/worker/webworkerclient_proxy.cc (working copy)
@@ -149,12 +149,21 @@
if (origin.isEmpty())
return false;
- bool result;
- if (!Send(new WorkerProcessHostMsg_AllowDatabase(route_id_,
- GURL(origin.toString().utf8()), name, display_name, estimated_size,
- &result)))
+ bool result = false;
+ Send(new WorkerProcessHostMsg_AllowDatabase(
+ route_id_, GURL(origin.toString().utf8()), name, display_name,
+ estimated_size, &result));
+ return result;
+}
+
+bool WebWorkerClientProxy::allowFileSystem(WebFrame* frame) {
+ WebSecurityOrigin origin = frame->securityOrigin();
michaeln 2011/05/12 02:57:19 frame not needed, see see stub_->url().GetOrigin()
jam 2011/05/12 16:40:34 Done.
+ if (origin.isEmpty())
return false;
+ bool result = false;
+ Send(new WorkerProcessHostMsg_AllowFileSystem(
+ route_id_, GURL(origin.toString().utf8()), &result));
return result;
}
« no previous file with comments | « content/worker/webworkerclient_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698