Chromium Code Reviews| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 156 | 156 |
| 157 void RemoteDebuggingServer::OnEnabledChanged() { | 157 void RemoteDebuggingServer::OnEnabledChanged() { |
| 158 bool enabled = *pref_enabled_ && port_ != 0; | 158 bool enabled = *pref_enabled_ && port_ != 0; |
| 159 if (enabled && !is_started_) { | 159 if (enabled && !is_started_) { |
| 160 content::DevToolsAgentHost::StartRemoteDebuggingServer( | 160 content::DevToolsAgentHost::StartRemoteDebuggingServer( |
| 161 CreateSocketFactory(port_), | 161 CreateSocketFactory(port_), |
| 162 GetFrontendUrl(), | 162 GetFrontendUrl(), |
| 163 base::FilePath(), | 163 base::FilePath(), |
| 164 base::FilePath(), | 164 base::FilePath(), |
| 165 std::string(), | 165 std::string(), |
| 166 GetUserAgent()); | 166 GetUserAgent(), |
| 167 std::string()); | |
|
halliwell
2016/11/17 23:22:25
Why aren't you passing the actual v8 version here
eostroukhov
2016/11/18 00:02:23
Linter rules prevent me from including v8.h here,
| |
| 167 LOG(INFO) << "Devtools started: port=" << port_; | 168 LOG(INFO) << "Devtools started: port=" << port_; |
| 168 } else if (!enabled && is_started_) { | 169 } else if (!enabled && is_started_) { |
| 169 LOG(INFO) << "Stop devtools: port=" << port_; | 170 LOG(INFO) << "Stop devtools: port=" << port_; |
| 170 is_started_ = false; | 171 is_started_ = false; |
| 171 content::DevToolsAgentHost::StopRemoteDebuggingServer(); | 172 content::DevToolsAgentHost::StopRemoteDebuggingServer(); |
| 172 } | 173 } |
| 173 } | 174 } |
| 174 | 175 |
| 175 } // namespace shell | 176 } // namespace shell |
| 176 } // namespace chromecast | 177 } // namespace chromecast |
| OLD | NEW |