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

Unified Diff: content/browser/service_worker/embedded_worker_registry.h

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Address feedback from yusuf 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.h
diff --git a/content/browser/service_worker/embedded_worker_registry.h b/content/browser/service_worker/embedded_worker_registry.h
index 09b925b918007e85c5071d24b25ae609c6098e08..d076eb9a195b59e4034b650b51d272bf84b590cf 100644
--- a/content/browser/service_worker/embedded_worker_registry.h
+++ b/content/browser/service_worker/embedded_worker_registry.h
@@ -28,7 +28,6 @@ class Sender;
namespace content {
class EmbeddedWorkerInstance;
-class MessagePortMessageFilter;
class ServiceWorkerContextCore;
// Acts as a thin stub between MessageFilter and each EmbeddedWorkerInstance,
@@ -89,10 +88,7 @@ class CONTENT_EXPORT EmbeddedWorkerRegistry
const GURL& source_url);
// Keeps a map from process_id to sender information.
- void AddChildProcessSender(
- int process_id,
- IPC::Sender* sender,
- MessagePortMessageFilter* message_port_message_filter);
+ void AddChildProcessSender(int process_id, IPC::Sender* sender);
void RemoveChildProcessSender(int process_id);
// Returns an embedded worker instance for given |embedded_worker_id|.
@@ -101,8 +97,6 @@ class CONTENT_EXPORT EmbeddedWorkerRegistry
// Returns true if |embedded_worker_id| is managed by this registry.
bool CanHandle(int embedded_worker_id) const;
- MessagePortMessageFilter* MessagePortMessageFilterForProcess(int process_id);
-
private:
friend class base::RefCounted<EmbeddedWorkerRegistry>;
friend class MojoEmbeddedWorkerInstanceTest;
@@ -113,8 +107,6 @@ class CONTENT_EXPORT EmbeddedWorkerRegistry
using WorkerInstanceMap = std::map<int, EmbeddedWorkerInstance*>;
using ProcessToSenderMap = std::map<int, IPC::Sender*>;
- using ProcessToMessagePortMessageFilterMap =
- std::map<int, MessagePortMessageFilter*>;
EmbeddedWorkerRegistry(
const base::WeakPtr<ServiceWorkerContextCore>& context,
@@ -144,7 +136,6 @@ class CONTENT_EXPORT EmbeddedWorkerRegistry
WorkerInstanceMap worker_map_;
ProcessToSenderMap process_sender_map_;
- ProcessToMessagePortMessageFilterMap process_message_port_message_filter_map_;
// Map from process_id to embedded_worker_id.
// This map only contains starting and running workers.

Powered by Google App Engine
This is Rietveld 408576698