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

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

Issue 2472093003: [DevTools]: Expose V8 version in /json/version (Closed)
Patch Set: Updated cast shell. Created 4 years, 1 month 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/devtools/remote_debugging_server.cc ('k') | content/browser/devtools/devtools_http_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698