OLD | NEW |
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 "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "chrome/browser/devtools/browser_list_tabcontents_provider.h" | 10 #include "chrome/browser/devtools/browser_list_tabcontents_provider.h" |
11 #include "chrome/browser/ui/webui/devtools_ui.h" | |
12 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
13 #include "content/public/browser/devtools_http_handler.h" | 12 #include "content/public/browser/devtools_http_handler.h" |
14 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
15 #include "net/socket/tcp_server_socket.h" | 14 #include "net/socket/tcp_server_socket.h" |
16 | 15 |
17 namespace { | 16 namespace { |
18 | 17 |
19 base::LazyInstance<bool>::Leaky g_tethering_enabled = LAZY_INSTANCE_INITIALIZER; | 18 base::LazyInstance<bool>::Leaky g_tethering_enabled = LAZY_INSTANCE_INITIALIZER; |
20 | 19 |
21 const uint16 kMinTetheringPort = 9333; | 20 const uint16 kMinTetheringPort = 9333; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 87 |
89 devtools_http_handler_.reset(content::DevToolsHttpHandler::Start( | 88 devtools_http_handler_.reset(content::DevToolsHttpHandler::Start( |
90 make_scoped_ptr(new TCPServerSocketFactory(ip, port)), | 89 make_scoped_ptr(new TCPServerSocketFactory(ip, port)), |
91 std::string(), | 90 std::string(), |
92 new BrowserListTabContentsProvider(host_desktop_type), | 91 new BrowserListTabContentsProvider(host_desktop_type), |
93 output_dir)); | 92 output_dir)); |
94 } | 93 } |
95 | 94 |
96 RemoteDebuggingServer::~RemoteDebuggingServer() { | 95 RemoteDebuggingServer::~RemoteDebuggingServer() { |
97 } | 96 } |
OLD | NEW |