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

Unified Diff: content/browser/worker_host/worker_process_host.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/browser/worker_host/worker_process_host.h ('k') | content/common/worker_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/worker_host/worker_process_host.cc
===================================================================
--- content/browser/worker_host/worker_process_host.cc (revision 85048)
+++ content/browser/worker_host/worker_process_host.cc (working copy)
@@ -201,10 +201,10 @@
base::PLATFORM_FILE_WRITE_ATTRIBUTES);
}
+ // Call the embedder first so that their IPC filters have priority.
+ content::GetContentClient()->browser()->WorkerProcessHostCreated(this);
CreateMessageFilters(render_process_id);
- content::GetContentClient()->browser()->WorkerProcessHostCreated(this);
-
return true;
}
@@ -228,9 +228,7 @@
AddFilter(worker_message_filter_);
AddFilter(new AppCacheDispatcherHost(resource_context_, id()));
AddFilter(new FileSystemDispatcherHost(
- request_context,
- resource_context_->host_content_settings_map(),
- resource_context_->file_system_context()));
+ request_context, resource_context_->file_system_context()));
AddFilter(new FileUtilitiesMessageFilter(id()));
AddFilter(
new BlobMessageFilter(id(), resource_context_->blob_storage_context()));
@@ -293,6 +291,8 @@
IPC_BEGIN_MESSAGE_MAP_EX(WorkerProcessHost, message, msg_is_ok)
IPC_MESSAGE_HANDLER(WorkerHostMsg_WorkerContextClosed,
OnWorkerContextClosed)
+ IPC_MESSAGE_HANDLER(WorkerProcessHostMsg_AllowDatabase, OnAllowDatabase)
+ IPC_MESSAGE_HANDLER(WorkerProcessHostMsg_AllowFileSystem, OnAllowFileSystem)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()
@@ -338,6 +338,21 @@
}
}
+void WorkerProcessHost::OnAllowDatabase(int worker_route_id,
+ const GURL& url,
+ const string16& name,
+ const string16& display_name,
+ unsigned long estimated_size,
+ bool* result) {
+ *result = true;
+}
+
+void WorkerProcessHost::OnAllowFileSystem(int worker_route_id,
+ const GURL& url,
+ bool* result) {
+ *result = true;
+}
+
void WorkerProcessHost::RelayMessage(
const IPC::Message& message,
WorkerMessageFilter* filter,
« no previous file with comments | « content/browser/worker_host/worker_process_host.h ('k') | content/common/worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698