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

Unified Diff: content/browser/service_worker/service_worker_provider_host.cc

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… 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 2e6394b6ff062e09ff4032a6d956c5a4062b6b96..f15022e589991540a4988eb0f7b2b81b9e850775 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"
@@ -441,22 +440,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));
}
« no previous file with comments | « content/browser/service_worker/service_worker_provider_host.h ('k') | content/browser/service_worker/service_worker_version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698