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

Unified Diff: content/browser/service_worker/embedded_worker_registry.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/embedded_worker_registry.cc
diff --git a/content/browser/service_worker/embedded_worker_registry.cc b/content/browser/service_worker/embedded_worker_registry.cc
index cf9dbe791121cd02b02f4e5bdf1d044dc55dbfb8..fbc629d87a8387153fb8d3ee8455bc2fa7038152 100644
--- a/content/browser/service_worker/embedded_worker_registry.cc
+++ b/content/browser/service_worker/embedded_worker_registry.cc
@@ -179,19 +179,14 @@ void EmbeddedWorkerRegistry::OnReportConsoleMessage(
line_number, source_url);
}
-void EmbeddedWorkerRegistry::AddChildProcessSender(
- int process_id,
- IPC::Sender* sender,
- MessagePortMessageFilter* message_port_message_filter) {
+void EmbeddedWorkerRegistry::AddChildProcessSender(int process_id,
+ IPC::Sender* sender) {
process_sender_map_[process_id] = sender;
- process_message_port_message_filter_map_[process_id] =
- message_port_message_filter;
DCHECK(!base::ContainsKey(worker_process_map_, process_id));
}
void EmbeddedWorkerRegistry::RemoveChildProcessSender(int process_id) {
process_sender_map_.erase(process_id);
- process_message_port_message_filter_map_.erase(process_id);
std::map<int, std::set<int> >::iterator found =
worker_process_map_.find(process_id);
if (found != worker_process_map_.end()) {
@@ -227,11 +222,6 @@ bool EmbeddedWorkerRegistry::CanHandle(int embedded_worker_id) const {
return true;
}
-MessagePortMessageFilter*
-EmbeddedWorkerRegistry::MessagePortMessageFilterForProcess(int process_id) {
- return process_message_port_message_filter_map_[process_id];
-}
-
EmbeddedWorkerRegistry::EmbeddedWorkerRegistry(
const base::WeakPtr<ServiceWorkerContextCore>& context,
int initial_embedded_worker_id)

Powered by Google App Engine
This is Rietveld 408576698