| Index: chrome/browser/debugger/devtools_http_protocol_handler.h
|
| diff --git a/chrome/browser/debugger/devtools_http_protocol_handler.h b/chrome/browser/debugger/devtools_http_protocol_handler.h
|
| index c5c485f2d4c51fd8c4c8728036f2a5af1a427b51..a7aff86dcf1186f4250611538cc81bedd6023463 100644
|
| --- a/chrome/browser/debugger/devtools_http_protocol_handler.h
|
| +++ b/chrome/browser/debugger/devtools_http_protocol_handler.h
|
| @@ -22,17 +22,20 @@ class DevToolsHttpProtocolHandler
|
| public net::URLRequest::Delegate,
|
| public base::RefCountedThreadSafe<DevToolsHttpProtocolHandler> {
|
| public:
|
| - explicit DevToolsHttpProtocolHandler(int port);
|
| + static DevToolsHttpProtocolHandler* Start(
|
| + int port,
|
| + const std::string& frontend_url);
|
|
|
| - // This method should be called after the object construction.
|
| - void Start();
|
| -
|
| - // 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();
|
|
|
| private:
|
| friend class base::RefCountedThreadSafe<DevToolsHttpProtocolHandler>;
|
| +
|
| + DevToolsHttpProtocolHandler(int port, const std::string& frontend_url);
|
| virtual ~DevToolsHttpProtocolHandler();
|
| + void Start();
|
|
|
| // HttpListenSocket::Delegate implementation.
|
| virtual void OnHttpRequest(HttpListenSocket* socket,
|
| @@ -73,6 +76,7 @@ class DevToolsHttpProtocolHandler
|
| TabContents* GetTabContents(int session_id);
|
|
|
| int port_;
|
| + std::string overriden_frontend_url_;
|
| scoped_refptr<HttpListenSocket> server_;
|
| typedef std::map<net::URLRequest*, HttpListenSocket*>
|
| RequestToSocketMap;
|
|
|