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

Unified Diff: content/browser/worker_host/worker_process_host.cc

Issue 8514004: Remove includes of worker_messages.h from chrome code, since that's an internal detail of content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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
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,

Powered by Google App Engine
This is Rietveld 408576698