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

Side by Side Diff: chrome/browser/devtools/remote_debugging_server.cc

Issue 12328029: Plumb HostDesktopType through BrowserListTabContentsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/devtools/remote_debugging_server.h ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/devtools/remote_debugging_server.h" 5 #include "chrome/browser/devtools/remote_debugging_server.h"
6 6
7 #include "chrome/browser/devtools/browser_list_tabcontents_provider.h" 7 #include "chrome/browser/devtools/browser_list_tabcontents_provider.h"
8 #include "chrome/browser/ui/webui/devtools_ui.h" 8 #include "chrome/browser/ui/webui/devtools_ui.h"
9 #include "content/public/browser/devtools_http_handler.h" 9 #include "content/public/browser/devtools_http_handler.h"
10 #include "net/base/tcp_listen_socket.h" 10 #include "net/base/tcp_listen_socket.h"
11 11
12 RemoteDebuggingServer::RemoteDebuggingServer(Profile* profile, 12 RemoteDebuggingServer::RemoteDebuggingServer(
13 const std::string& ip, 13 Profile* profile,
14 int port, 14 chrome::HostDesktopType host_desktop_type,
15 const std::string& frontend_url) { 15 const std::string& ip,
16 int port,
17 const std::string& frontend_url) {
16 // Initialize DevTools data source. 18 // Initialize DevTools data source.
17 DevToolsUI::RegisterDevToolsDataSource(profile); 19 DevToolsUI::RegisterDevToolsDataSource(profile);
18 20
19 devtools_http_handler_ = content::DevToolsHttpHandler::Start( 21 devtools_http_handler_ = content::DevToolsHttpHandler::Start(
20 new net::TCPListenSocketFactory(ip, port), 22 new net::TCPListenSocketFactory(ip, port),
21 frontend_url, 23 frontend_url,
22 new BrowserListTabContentsProvider(profile)); 24 new BrowserListTabContentsProvider(profile, host_desktop_type));
23 } 25 }
24 26
25 RemoteDebuggingServer::~RemoteDebuggingServer() { 27 RemoteDebuggingServer::~RemoteDebuggingServer() {
26 devtools_http_handler_->Stop(); 28 devtools_http_handler_->Stop();
27 } 29 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/remote_debugging_server.h ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698