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

Unified Diff: content/browser/shared_worker/shared_worker_service_impl.cc

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Eliminate unnecessary PostTask Created 3 years, 10 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
Index: content/browser/shared_worker/shared_worker_service_impl.cc
diff --git a/content/browser/shared_worker/shared_worker_service_impl.cc b/content/browser/shared_worker/shared_worker_service_impl.cc
index e70050008010c91271b25c9600ab16f30efe2672..f560cd529e7121c6fbcf089b382089ea4a70dd9d 100644
--- a/content/browser/shared_worker/shared_worker_service_impl.cc
+++ b/content/browser/shared_worker/shared_worker_service_impl.cc
@@ -325,13 +325,12 @@ blink::WebWorkerCreationError SharedWorkerServiceImpl::CreateWorker(
}
void SharedWorkerServiceImpl::ConnectToWorker(SharedWorkerMessageFilter* filter,
- int route_id,
- int sent_message_port_id) {
+ int worker_route_id,
+ const MessagePort& port) {
for (WorkerHostMap::const_iterator iter = worker_hosts_.begin();
iter != worker_hosts_.end();
++iter) {
- if (iter->second->FilterConnectionMessage(route_id, sent_message_port_id,
- filter))
+ if (iter->second->SendConnectToWorker(worker_route_id, port, filter))
return;
}
}
@@ -393,11 +392,11 @@ void SharedWorkerServiceImpl::WorkerScriptLoadFailed(
}
void SharedWorkerServiceImpl::WorkerConnected(SharedWorkerMessageFilter* filter,
- int message_port_id,
+ int connection_request_id,
int worker_route_id) {
if (SharedWorkerHost* host =
FindSharedWorkerHost(filter->render_process_id(), worker_route_id))
- host->WorkerConnected(message_port_id);
+ host->WorkerConnected(connection_request_id);
}
void SharedWorkerServiceImpl::AllowFileSystem(SharedWorkerMessageFilter* filter,

Powered by Google App Engine
This is Rietveld 408576698