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

Unified Diff: chrome/browser/debugger/debugger_wrapper.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: 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/debugger_wrapper.cc
diff --git a/chrome/browser/debugger/debugger_wrapper.cc b/chrome/browser/debugger/debugger_wrapper.cc
deleted file mode 100644
index 644bf052cfe0d09f6f1cf3acdcb31ac4f867eb7a..0000000000000000000000000000000000000000
--- a/chrome/browser/debugger/debugger_wrapper.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/debugger/debugger_wrapper.h"
-
-#include "chrome/browser/debugger/devtools_http_protocol_handler.h"
-#include "chrome/browser/debugger/debugger_remote_service.h"
-#include "chrome/browser/debugger/devtools_protocol_handler.h"
-#include "chrome/browser/debugger/devtools_remote_service.h"
-#include "chrome/browser/debugger/extension_ports_remote_service.h"
-
-DebuggerWrapper::DebuggerWrapper(int port, bool useHttp) {
- if (port > 0) {
- if (useHttp) {
- http_handler_ = new DevToolsHttpProtocolHandler(port);
- http_handler_->Start();
- } else {
- 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();
- }
- }
-}
-
-DebuggerWrapper::~DebuggerWrapper() {
- if (proto_handler_.get() != NULL)
- proto_handler_->Stop();
-
- if (http_handler_.get() != NULL)
- http_handler_->Stop();
-}
« no previous file with comments | « chrome/browser/debugger/debugger_wrapper.h ('k') | chrome/browser/debugger/devtools_http_protocol_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698