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

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

Issue 690723005: Chromecast: removes devtools resources from bundle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make help text static 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/cast_dev_tools_delegate.h" 5 #include "chromecast/browser/devtools/cast_dev_tools_delegate.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "content/public/browser/devtools_agent_host.h" 10 #include "content/public/browser/devtools_agent_host.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 std::string CastDevToolsDelegate::GetDiscoveryPageHTML() { 103 std::string CastDevToolsDelegate::GetDiscoveryPageHTML() {
104 #if defined(OS_ANDROID) 104 #if defined(OS_ANDROID)
105 return std::string(); 105 return std::string();
106 #else 106 #else
107 return ResourceBundle::GetSharedInstance().GetRawDataResource( 107 return ResourceBundle::GetSharedInstance().GetRawDataResource(
108 IDR_CAST_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string(); 108 IDR_CAST_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string();
109 #endif // defined(OS_ANDROID) 109 #endif // defined(OS_ANDROID)
110 } 110 }
111 111
112 bool CastDevToolsDelegate::BundlesFrontendResources() { 112 bool CastDevToolsDelegate::BundlesFrontendResources() {
113 #if defined(OS_ANDROID)
114 return false; 113 return false;
115 #else
116 return true;
117 #endif // defined(OS_ANDROID)
118 } 114 }
119 115
120 base::FilePath CastDevToolsDelegate::GetDebugFrontendDir() { 116 base::FilePath CastDevToolsDelegate::GetDebugFrontendDir() {
121 return base::FilePath(); 117 return base::FilePath();
122 } 118 }
123 119
124 scoped_ptr<net::StreamListenSocket> 120 scoped_ptr<net::StreamListenSocket>
125 CastDevToolsDelegate::CreateSocketForTethering( 121 CastDevToolsDelegate::CreateSocketForTethering(
126 net::StreamListenSocket::Delegate* delegate, 122 net::StreamListenSocket::Delegate* delegate,
127 std::string* name) { 123 std::string* name) {
(...skipping 30 matching lines...) Expand all
158 content::DevToolsAgentHost::GetOrCreateAll(); 154 content::DevToolsAgentHost::GetOrCreateAll();
159 for (content::DevToolsAgentHost::List::iterator it = agents.begin(); 155 for (content::DevToolsAgentHost::List::iterator it = agents.begin();
160 it != agents.end(); ++it) { 156 it != agents.end(); ++it) {
161 targets.push_back(new Target(*it)); 157 targets.push_back(new Target(*it));
162 } 158 }
163 callback.Run(targets); 159 callback.Run(targets);
164 } 160 }
165 161
166 } // namespace shell 162 } // namespace shell
167 } // namespace chromecast 163 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/app/resources/shell_devtools_discovery_page.html ('k') | chromecast/browser/devtools/remote_debugging_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698