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

Unified Diff: content/worker/shared_worker_permission_client_proxy.cc

Issue 273513005: Avoid sync IPCs for FileSystem API [chromium] (2/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 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/shared_worker_permission_client_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/shared_worker_permission_client_proxy.cc
diff --git a/content/worker/shared_worker_permission_client_proxy.cc b/content/worker/shared_worker_permission_client_proxy.cc
index eb187c252de08c6001ce40ba3a47e8c41839c4db..88b9205444ae5fabc42f5e2dde298c1a2d59c8be 100644
--- a/content/worker/shared_worker_permission_client_proxy.cc
+++ b/content/worker/shared_worker_permission_client_proxy.cc
@@ -42,7 +42,18 @@ bool SharedWorkerPermissionClientProxy::allowFileSystem() {
if (is_unique_origin_)
return false;
bool result = false;
- thread_safe_sender_->Send(new WorkerProcessHostMsg_AllowFileSystem(
+ thread_safe_sender_->Send(
+ new WorkerProcessHostMsg_RequestFileSystemAccessSync(
+ routing_id_, origin_url_, &result));
+ return result;
+}
+
+bool SharedWorkerPermissionClientProxy::requestFileSystemAccessSync() {
+ if (is_unique_origin_)
+ return false;
+ bool result = false;
+ thread_safe_sender_->Send(
+ new WorkerProcessHostMsg_RequestFileSystemAccessSync(
routing_id_, origin_url_, &result));
return result;
}
« no previous file with comments | « content/worker/shared_worker_permission_client_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698