OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/shell/browser/devtools/remote_debugging_server.h" | 5 #include "chromecast/browser/devtools/remote_debugging_server.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "chromecast/browser/devtools/cast_dev_tools_delegate.h" |
12 #include "chromecast/common/chromecast_config.h" | 13 #include "chromecast/common/chromecast_config.h" |
13 #include "chromecast/common/pref_names.h" | 14 #include "chromecast/common/pref_names.h" |
14 #include "chromecast/shell/browser/devtools/cast_dev_tools_delegate.h" | |
15 #include "content/public/browser/browser_context.h" | 15 #include "content/public/browser/browser_context.h" |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 #include "content/public/browser/devtools_http_handler.h" | 17 #include "content/public/browser/devtools_http_handler.h" |
18 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
19 #include "content/public/common/user_agent.h" | 19 #include "content/public/common/user_agent.h" |
20 #include "net/socket/tcp_server_socket.h" | 20 #include "net/socket/tcp_server_socket.h" |
21 | 21 |
22 #if defined(OS_ANDROID) | 22 #if defined(OS_ANDROID) |
23 #include "content/public/browser/android/devtools_auth.h" | 23 #include "content/public/browser/android/devtools_auth.h" |
24 #include "net/socket/unix_domain_server_socket_posix.h" | 24 #include "net/socket/unix_domain_server_socket_posix.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 CreateSocketFactory(port_), | 146 CreateSocketFactory(port_), |
147 GetFrontendUrl(), | 147 GetFrontendUrl(), |
148 new CastDevToolsDelegate(), | 148 new CastDevToolsDelegate(), |
149 base::FilePath()); | 149 base::FilePath()); |
150 LOG(INFO) << "Devtools started: port=" << port_; | 150 LOG(INFO) << "Devtools started: port=" << port_; |
151 } | 151 } |
152 } | 152 } |
153 | 153 |
154 } // namespace shell | 154 } // namespace shell |
155 } // namespace chromecast | 155 } // namespace chromecast |
OLD | NEW |