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

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

Issue 730433003: [DevTools] Remote frontend is now embedded to iframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, fixed test Created 6 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 12 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « chrome/test/data/devtools/target_list/background.js ('k') | content/browser/devtools/devtools_http_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698