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

Unified Diff: content/browser/service_worker/service_worker_provider_host.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/service_worker/service_worker_provider_host.cc
diff --git a/content/browser/service_worker/service_worker_provider_host.cc b/content/browser/service_worker/service_worker_provider_host.cc
index a32fdd32fea0d945eff3b333e822dd761e6becec..6f10e1df851a8e5a176aa8492f4135f8086292b8 100644
--- a/content/browser/service_worker/service_worker_provider_host.cc
+++ b/content/browser/service_worker/service_worker_provider_host.cc
@@ -10,7 +10,6 @@
#include "base/memory/ptr_util.h"
#include "base/stl_util.h"
#include "base/time/time.h"
-#include "content/browser/message_port_message_filter.h"
#include "content/browser/service_worker/embedded_worker_status.h"
#include "content/browser/service_worker/service_worker_context_core.h"
#include "content/browser/service_worker/service_worker_context_request_handler.h"
@@ -440,22 +439,16 @@ bool ServiceWorkerProviderHost::CanAssociateRegistration(
void ServiceWorkerProviderHost::PostMessageToClient(
ServiceWorkerVersion* version,
const base::string16& message,
- const std::vector<int>& sent_message_ports) {
+ const std::vector<MessagePort>& sent_message_ports) {
if (!dispatcher_host_)
return; // Could be NULL in some tests.
- std::vector<int> new_routing_ids;
- dispatcher_host_->message_port_message_filter()->
- UpdateMessagePortsWithNewRoutes(sent_message_ports,
- &new_routing_ids);
-
ServiceWorkerMsg_MessageToDocument_Params params;
params.thread_id = kDocumentMainThreadId;
params.provider_id = provider_id();
params.service_worker_info = GetOrCreateServiceWorkerHandle(version);
params.message = message;
params.message_ports = sent_message_ports;
- params.new_routing_ids = new_routing_ids;
Send(new ServiceWorkerMsg_MessageToDocument(params));
}

Powered by Google App Engine
This is Rietveld 408576698