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

Unified Diff: content/worker/worker_thread.cc

Issue 8399007: Removing dedicated worker-related IPC codei (first round). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: CR feedback Created 9 years, 2 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/worker_thread.h ('k') | content/worker/worker_webapplicationcachehost_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/worker/worker_thread.cc
diff --git a/content/worker/worker_thread.cc b/content/worker/worker_thread.cc
index 09b4c9c2815761a2f53658aa657f2ef40a9d6e1f..3d05e4932004ea63aabaa3dd0840054824cfa4f2 100644
--- a/content/worker/worker_thread.cc
+++ b/content/worker/worker_thread.cc
@@ -12,7 +12,6 @@
#include "content/common/web_database_observer_impl.h"
#include "content/common/worker_messages.h"
#include "content/public/common/content_switches.h"
-#include "content/worker/webworker_stub.h"
#include "content/worker/websharedworker_stub.h"
#include "content/worker/worker_webkitplatformsupport_impl.h"
#include "ipc/ipc_sync_channel.h"
@@ -93,15 +92,11 @@ bool WorkerThread::OnControlMessageReceived(const IPC::Message& msg) {
void WorkerThread::OnCreateWorker(
const WorkerProcessMsg_CreateWorker_Params& params) {
WorkerAppCacheInitInfo appcache_init_info(
- params.is_shared, params.creator_process_id,
- params.creator_appcache_host_id,
+ params.creator_process_id,
params.shared_worker_appcache_id);
- // WebWorkerStub and WebSharedWorkerStub own themselves.
- if (params.is_shared)
- new WebSharedWorkerStub(params.name, params.route_id, appcache_init_info);
- else
- new WebWorkerStub(params.url, params.route_id, appcache_init_info);
+ // WebSharedWorkerStub own themselves.
+ new WebSharedWorkerStub(params.name, params.route_id, appcache_init_info);
}
// The browser process is likely dead. Terminate all workers.
@@ -114,10 +109,10 @@ void WorkerThread::OnChannelError() {
}
}
-void WorkerThread::RemoveWorkerStub(WebWorkerStubBase* stub) {
+void WorkerThread::RemoveWorkerStub(WebSharedWorkerStub* stub) {
worker_stubs_.erase(stub);
}
-void WorkerThread::AddWorkerStub(WebWorkerStubBase* stub) {
+void WorkerThread::AddWorkerStub(WebSharedWorkerStub* stub) {
worker_stubs_.insert(stub);
}
« no previous file with comments | « content/worker/worker_thread.h ('k') | content/worker/worker_webapplicationcachehost_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698