| Index: content/renderer/devtools/devtools_agent_filter.h
|
| diff --git a/content/renderer/devtools/devtools_agent_filter.h b/content/renderer/devtools/devtools_agent_filter.h
|
| index e7f78613807bcccb8f50885661dbf2a1e8acf3b9..8935833e4b201dbab672de4065044e1da5d7b62c 100644
|
| --- a/content/renderer/devtools/devtools_agent_filter.h
|
| +++ b/content/renderer/devtools/devtools_agent_filter.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_FILTER_H_
|
| #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_FILTER_H_
|
|
|
| +#include <set>
|
| #include <string>
|
|
|
| #include "ipc/ipc_channel_proxy.h"
|
| @@ -33,16 +34,28 @@ class DevToolsAgentFilter : public IPC::ChannelProxy::MessageFilter {
|
| // IPC::ChannelProxy::MessageFilter override. Called on IO thread.
|
| virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
|
|
| + // Called on the main thread.
|
| + void AddSharedWorkerRouteOnMainThread(int32 routing_id);
|
| + void RemoveSharedWorkerRouteOnMainThread(int32 routing_id);
|
| +
|
| protected:
|
| virtual ~DevToolsAgentFilter();
|
|
|
| private:
|
| void OnDispatchOnInspectorBackend(const std::string& message);
|
|
|
| + // Called on IO thread
|
| + void AddSharedWorkerRoute(int32 routing_id);
|
| + void RemoveSharedWorkerRoute(int32 routing_id);
|
| +
|
| bool message_handled_;
|
| base::MessageLoop* render_thread_loop_;
|
| + // Proxy to the IO message loop.
|
| + scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
|
| int current_routing_id_;
|
|
|
| + std::set<int32> shared_worker_routes_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter);
|
| };
|
|
|
|
|