| 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/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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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" |
| 25 #endif // defined(OS_ANDROID) | 25 #endif // defined(OS_ANDROID) |
| 26 | 26 |
| 27 namespace chromecast { | 27 namespace chromecast { |
| 28 namespace shell { | 28 namespace shell { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 const char kFrontEndURL[] = | 32 const char kFrontEndURL[] = |
| 33 "https://chrome-devtools-frontend.appspot.com/serve_rev/%s/devtools.html"; | 33 "https://chrome-devtools-frontend.appspot.com/serve_rev/%s/inspector.html"; |
| 34 const int kDefaultRemoteDebuggingPort = 9222; | 34 const int kDefaultRemoteDebuggingPort = 9222; |
| 35 | 35 |
| 36 #if defined(OS_ANDROID) | 36 #if defined(OS_ANDROID) |
| 37 class UnixDomainServerSocketFactory | 37 class UnixDomainServerSocketFactory |
| 38 : public content::DevToolsHttpHandler::ServerSocketFactory { | 38 : public content::DevToolsHttpHandler::ServerSocketFactory { |
| 39 public: | 39 public: |
| 40 explicit UnixDomainServerSocketFactory(const std::string& socket_name) | 40 explicit UnixDomainServerSocketFactory(const std::string& socket_name) |
| 41 : content::DevToolsHttpHandler::ServerSocketFactory(socket_name, 0, 1) {} | 41 : content::DevToolsHttpHandler::ServerSocketFactory(socket_name, 0, 1) {} |
| 42 | 42 |
| 43 private: | 43 private: |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 CreateSocketFactory(port_), | 136 CreateSocketFactory(port_), |
| 137 GetFrontendUrl(), | 137 GetFrontendUrl(), |
| 138 new CastDevToolsDelegate(), | 138 new CastDevToolsDelegate(), |
| 139 base::FilePath())); | 139 base::FilePath())); |
| 140 LOG(INFO) << "Devtools started: port=" << port_; | 140 LOG(INFO) << "Devtools started: port=" << port_; |
| 141 } | 141 } |
| 142 } | 142 } |
| 143 | 143 |
| 144 } // namespace shell | 144 } // namespace shell |
| 145 } // namespace chromecast | 145 } // namespace chromecast |
| OLD | NEW |