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

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

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: Extra qualification removed. 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.cc
diff --git a/chrome/browser/debugger/devtools_protocol_handler.cc b/chrome/browser/debugger/devtools_protocol_handler.cc
index 6e72ef030139faa0150f0eca4ca80e4c5ea39684..1e9bf02d5b3ec7b44e1a42499f313fa8b2daa5f5 100644
--- a/chrome/browser/debugger/devtools_protocol_handler.cc
+++ b/chrome/browser/debugger/devtools_protocol_handler.cc
@@ -7,8 +7,28 @@
#include "base/logging.h"
#include "chrome/browser/browser_thread.h"
#include "chrome/browser/debugger/inspectable_tab_proxy.h"
+#include "chrome/browser/debugger/debugger_remote_service.h"
#include "chrome/browser/debugger/devtools_remote_message.h"
#include "chrome/browser/debugger/devtools_remote_listen_socket.h"
+#include "chrome/browser/debugger/devtools_remote_service.h"
+#include "chrome/browser/debugger/extension_ports_remote_service.h"
+
+// static
+DevToolsProtocolHandler* DevToolsProtocolHandler::Start(int port) {
+ scoped_refptr<DevToolsProtocolHandler> proto_handler =
+ new DevToolsProtocolHandler(port);
+ proto_handler->RegisterDestination(
+ new DevToolsRemoteService(proto_handler),
+ DevToolsRemoteService::kToolName);
+ proto_handler->RegisterDestination(
+ new DebuggerRemoteService(proto_handler),
+ DebuggerRemoteService::kToolName);
+ proto_handler->RegisterDestination(
+ new ExtensionPortsRemoteService(proto_handler),
+ ExtensionPortsRemoteService::kToolName);
+ proto_handler->Start();
+ return proto_handler.get();
yurys 2011/01/31 14:58:24 Please return scoped_refptr instead.
pfeldman 2011/01/31 15:15:54 Done.
+}
DevToolsProtocolHandler::DevToolsProtocolHandler(int port)
: port_(port),

Powered by Google App Engine
This is Rietveld 408576698