Index: chrome/browser/debugger/devtools_protocol_handler.h |
diff --git a/chrome/browser/debugger/devtools_protocol_handler.h b/chrome/browser/debugger/devtools_protocol_handler.h |
index 92889cc9196449523ced78dc835c30b90b0aac61..a91cefbb42c8bb17dfb8d1909101c2179b6c33f8 100644 |
--- a/chrome/browser/debugger/devtools_protocol_handler.h |
+++ b/chrome/browser/debugger/devtools_protocol_handler.h |
@@ -27,12 +27,10 @@ class DevToolsProtocolHandler |
typedef base::hash_map< std::string, scoped_refptr<DevToolsRemoteListener> > |
ToolToListenerMap; |
- explicit DevToolsProtocolHandler(int port); |
- |
- // This method should be called after the object construction. |
- void Start(); |
+ static scoped_refptr<DevToolsProtocolHandler> Start(int port); |
- // This method should be called before the object destruction. |
+ // Called from the main thread in order to stop protocol handler. |
+ // Will schedule tear down task on IO thread. |
void Stop(); |
// Registers a |listener| to handle messages for a certain |tool_name| Tool. |
@@ -61,7 +59,9 @@ class DevToolsProtocolHandler |
virtual void Send(const DevToolsRemoteMessage& message); |
private: |
+ explicit DevToolsProtocolHandler(int port); |
virtual ~DevToolsProtocolHandler(); |
+ void Start(); |
void Init(); |
void Teardown(); |