| Index: content/browser/shared_worker/shared_worker_host.h
|
| diff --git a/content/browser/shared_worker/shared_worker_host.h b/content/browser/shared_worker/shared_worker_host.h
|
| index 32235254aca259bd06ea7eca889ddbc316e16b6b..b15a22abb775d5465be8900cd1152595fe3307b3 100644
|
| --- a/content/browser/shared_worker/shared_worker_host.h
|
| +++ b/content/browser/shared_worker/shared_worker_host.h
|
| @@ -43,15 +43,19 @@ class SharedWorkerHost {
|
| // |filter_|.
|
| void Start(bool pause_on_start);
|
|
|
| - // Returns true iff the given message from a renderer process was forwarded to
|
| - // the worker.
|
| - bool FilterMessage(const IPC::Message& message,
|
| - SharedWorkerMessageFilter* filter);
|
| + // Returns true if this host can handle a message associated with given route
|
| + // ID and filter.
|
| + bool CanHandleMessage(int route_id, SharedWorkerMessageFilter* filter);
|
|
|
| // Handles the shutdown of the filter. If the worker has no other client,
|
| // sends TerminateWorkerContext message to shut it down.
|
| void FilterShutdown(SharedWorkerMessageFilter* filter);
|
|
|
| + // Sends a connection message to the SharedWorker.
|
| + void Connect(int route_id,
|
| + int sent_message_port_id,
|
| + SharedWorkerMessageFilter* incoming_filter);
|
| +
|
| // Shuts down any shared workers that are no longer referenced by active
|
| // documents.
|
| void DocumentDetached(SharedWorkerMessageFilter* filter,
|
| @@ -109,11 +113,6 @@ class SharedWorkerHost {
|
|
|
| using FilterList = std::list<FilterInfo>;
|
|
|
| - // Relays |message| to the SharedWorker. Takes care of parsing the message if
|
| - // it contains a message port and sending it a valid route id.
|
| - void RelayMessage(const IPC::Message& message,
|
| - SharedWorkerMessageFilter* incoming_filter);
|
| -
|
| // Return a vector of all the render process/render frame IDs.
|
| std::vector<std::pair<int, int> > GetRenderFrameIDsForWorker();
|
|
|
|
|