| 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..c86c6336974ea7a14091688b7b758e64aff5b0e9 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 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();
|
|
|