Index: content/browser/worker_host/worker_process_host.cc |
=================================================================== |
--- content/browser/worker_host/worker_process_host.cc (revision 109446) |
+++ content/browser/worker_host/worker_process_host.cc (working copy) |
@@ -234,8 +234,6 @@ |
base::PLATFORM_FILE_WRITE); |
} |
- // Call the embedder first so that their IPC filters have priority. |
- content::GetContentClient()->browser()->WorkerProcessHostCreated(this); |
CreateMessageFilters(render_process_id); |
return true; |
@@ -373,13 +371,15 @@ |
const string16& display_name, |
unsigned long estimated_size, |
bool* result) { |
- *result = true; |
+ *result = content::GetContentClient()->browser()->AllowWorkerDatabase( |
+ worker_route_id, url, name, display_name, estimated_size, this); |
} |
void WorkerProcessHost::OnAllowFileSystem(int worker_route_id, |
const GURL& url, |
bool* result) { |
- *result = true; |
+ *result = content::GetContentClient()->browser()->AllowWorkerFileSystem( |
+ worker_route_id, url, this); |
} |
void WorkerProcessHost::RelayMessage( |
@@ -514,6 +514,10 @@ |
} |
} |
+void WorkerProcessHost::TerminateWorker(int worker_route_id) { |
+ Send(new WorkerMsg_TerminateWorkerContext(worker_route_id)); |
+} |
+ |
WorkerProcessHost::WorkerInstance::WorkerInstance( |
const GURL& url, |
const string16& name, |