Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1803)

Unified Diff: chrome/browser/debugger/devtools_protocol_handler.h

Issue 6356015: DevTools: enable remote debugging with front-end served from the cloud. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Lint Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « chrome/browser/debugger/devtools_http_protocol_handler.cc ('k') | chrome/browser/debugger/devtools_protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698