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

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

Issue 2300703005: DevTools: merge devtools_http_handler into content - it is used in all the embedders anyways. (Closed)
Patch Set: for review Created 4 years, 3 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
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/macros.h" 7 #include "base/macros.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "grit/shell_resources.h" 9 #include "grit/shell_resources.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
11 11
12 namespace chromecast { 12 namespace chromecast {
13 namespace shell { 13 namespace shell {
14 14
15 using content::DevToolsAgentHost;
16
15 // CastDevToolsDelegate ----------------------------------------------------- 17 // CastDevToolsDelegate -----------------------------------------------------
16 18
17 CastDevToolsDelegate::CastDevToolsDelegate() { 19 CastDevToolsDelegate::CastDevToolsDelegate() {
18 } 20 }
19 21
20 CastDevToolsDelegate::~CastDevToolsDelegate() { 22 CastDevToolsDelegate::~CastDevToolsDelegate() {
21 } 23 }
22 24
25 void CastDevToolsDelegate::Inspect(DevToolsAgentHost* agent_host) {
26 }
27
28 void CastDevToolsDelegate::DevToolsAgentStateChanged(
29 DevToolsAgentHost* agent_host, bool attached) {
30 }
31
32 std::string CastDevToolsDelegate::GetTargetType(RenderFrameHost* host) {
33 return content::DevToolsAgentHost::kTypePage;
34 }
35
36 std::string CastDevToolsDelegate::GetTargetTitle(RenderFrameHost* host) {
37 return std::string();
38 }
39
40 scoped_refptr<DevToolsAgentHost> CastDevToolsDelegate::CreateNewTarget(
41 const GURL& url) {
42 return nullptr;
43 }
44
45 base::DictionaryValue* CastDevToolsDelegate::HandleCommand(
46 DevToolsAgentHost* agent_host,
47 base::DictionaryValue* command) {
48 return nullptr;
49 }
50
23 std::string CastDevToolsDelegate::GetDiscoveryPageHTML() { 51 std::string CastDevToolsDelegate::GetDiscoveryPageHTML() {
24 #if defined(OS_ANDROID) 52 #if defined(OS_ANDROID)
25 return std::string(); 53 return std::string();
26 #else 54 #else
27 return ResourceBundle::GetSharedInstance().GetRawDataResource( 55 return ResourceBundle::GetSharedInstance().GetRawDataResource(
28 IDR_CAST_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string(); 56 IDR_CAST_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string();
29 #endif // defined(OS_ANDROID) 57 #endif // defined(OS_ANDROID)
30 } 58 }
31 59
32 std::string CastDevToolsDelegate::GetFrontendResource( 60 std::string CastDevToolsDelegate::GetFrontendResource(
33 const std::string& path) { 61 const std::string& path) {
34 return std::string(); 62 return std::string();
35 } 63 }
36 64
37 } // namespace shell 65 } // namespace shell
38 } // namespace chromecast 66 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698