| 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_devtools_delegate.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/public/browser/devtools_agent_host.h" |
| 9 #include "grit/shell_resources.h" | 10 #include "grit/shell_resources.h" |
| 10 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 11 | 12 |
| 12 namespace chromecast { | 13 namespace chromecast { |
| 13 namespace shell { | 14 namespace shell { |
| 14 | 15 |
| 16 using content::DevToolsAgentHost; |
| 17 using content::RenderFrameHost; |
| 18 |
| 15 // CastDevToolsDelegate ----------------------------------------------------- | 19 // CastDevToolsDelegate ----------------------------------------------------- |
| 16 | 20 |
| 17 CastDevToolsDelegate::CastDevToolsDelegate() { | 21 CastDevToolsDelegate::CastDevToolsDelegate() { |
| 18 } | 22 } |
| 19 | 23 |
| 20 CastDevToolsDelegate::~CastDevToolsDelegate() { | 24 CastDevToolsDelegate::~CastDevToolsDelegate() { |
| 21 } | 25 } |
| 22 | 26 |
| 27 void CastDevToolsDelegate::Inspect(DevToolsAgentHost* agent_host) { |
| 28 } |
| 29 |
| 30 void CastDevToolsDelegate::DevToolsAgentStateChanged( |
| 31 DevToolsAgentHost* agent_host, bool attached) { |
| 32 } |
| 33 |
| 23 std::string CastDevToolsDelegate::GetDiscoveryPageHTML() { | 34 std::string CastDevToolsDelegate::GetDiscoveryPageHTML() { |
| 24 #if defined(OS_ANDROID) | 35 #if defined(OS_ANDROID) |
| 25 return std::string(); | 36 return std::string(); |
| 26 #else | 37 #else |
| 27 return ResourceBundle::GetSharedInstance().GetRawDataResource( | 38 return ResourceBundle::GetSharedInstance().GetRawDataResource( |
| 28 IDR_CAST_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string(); | 39 IDR_CAST_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string(); |
| 29 #endif // defined(OS_ANDROID) | 40 #endif // defined(OS_ANDROID) |
| 30 } | 41 } |
| 31 | 42 |
| 32 std::string CastDevToolsDelegate::GetFrontendResource( | |
| 33 const std::string& path) { | |
| 34 return std::string(); | |
| 35 } | |
| 36 | |
| 37 } // namespace shell | 43 } // namespace shell |
| 38 } // namespace chromecast | 44 } // namespace chromecast |
| OLD | NEW |