| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |