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

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

Issue 637353004: Remove obsoleted term, "content_shell". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
« no previous file with comments | « chromecast/browser/android/apk/AndroidManifest.xml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 DISALLOW_COPY_AND_ASSIGN(TCPServerSocketFactory); 71 DISALLOW_COPY_AND_ASSIGN(TCPServerSocketFactory);
72 }; 72 };
73 #endif 73 #endif
74 74
75 scoped_ptr<content::DevToolsHttpHandler::ServerSocketFactory> 75 scoped_ptr<content::DevToolsHttpHandler::ServerSocketFactory>
76 CreateSocketFactory(int port) { 76 CreateSocketFactory(int port) {
77 #if defined(OS_ANDROID) 77 #if defined(OS_ANDROID)
78 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 78 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
79 std::string socket_name = "content_shell_devtools_remote"; 79 std::string socket_name = "cast_shell_devtools_remote";
80 if (command_line->HasSwitch(switches::kRemoteDebuggingSocketName)) { 80 if (command_line->HasSwitch(switches::kRemoteDebuggingSocketName)) {
81 socket_name = command_line->GetSwitchValueASCII( 81 socket_name = command_line->GetSwitchValueASCII(
82 switches::kRemoteDebuggingSocketName); 82 switches::kRemoteDebuggingSocketName);
83 } 83 }
84 return scoped_ptr<content::DevToolsHttpHandler::ServerSocketFactory>( 84 return scoped_ptr<content::DevToolsHttpHandler::ServerSocketFactory>(
85 new UnixDomainServerSocketFactory(socket_name)); 85 new UnixDomainServerSocketFactory(socket_name));
86 #else 86 #else
87 return scoped_ptr<content::DevToolsHttpHandler::ServerSocketFactory>( 87 return scoped_ptr<content::DevToolsHttpHandler::ServerSocketFactory>(
88 new TCPServerSocketFactory("0.0.0.0", port, 1)); 88 new TCPServerSocketFactory("0.0.0.0", port, 1));
89 #endif 89 #endif
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chromecast/browser/android/apk/AndroidManifest.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698