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 #ifndef CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_ | 5 #ifndef CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_ |
6 #define CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_ | 6 #define CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/devtools_http_handler/devtools_http_handler_delegate.h" | 9 #include "content/public/browser/devtools_manager_delegate.h" |
| 10 |
| 11 namespace content { |
| 12 class DevToolsAgentHost; |
| 13 } |
10 | 14 |
11 namespace chromecast { | 15 namespace chromecast { |
12 namespace shell { | 16 namespace shell { |
13 | 17 |
14 class CastDevToolsDelegate : | 18 class CastDevToolsDelegate : |
15 public devtools_http_handler::DevToolsHttpHandlerDelegate { | 19 public content::DevToolsManagerDelegate { |
16 public: | 20 public: |
17 CastDevToolsDelegate(); | 21 CastDevToolsDelegate(); |
18 ~CastDevToolsDelegate() override; | 22 ~CastDevToolsDelegate() override; |
19 | 23 |
20 // devtools_http_handler::DevToolsHttpHandlerDelegate implementation. | 24 // content::DevToolsManagerDelegate implementation. |
| 25 void Inspect(content::DevToolsAgentHost* agent_host) override; |
| 26 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, |
| 27 bool attached) override; |
| 28 std::string GetTargetType(RenderFrameHost* host) override; |
| 29 std::string GetTargetTitle(RenderFrameHost* host) override; |
| 30 scoped_refptr<content::DevToolsAgentHost> CreateNewTarget( |
| 31 const GURL& url) override; |
| 32 base::DictionaryValue* HandleCommand( |
| 33 content::DevToolsAgentHost* agent_host, |
| 34 base::DictionaryValue* command) override; |
21 std::string GetDiscoveryPageHTML() override; | 35 std::string GetDiscoveryPageHTML() override; |
22 std::string GetFrontendResource(const std::string& path) override; | 36 std::string GetFrontendResource(const std::string& path) override; |
23 | 37 |
24 private: | 38 private: |
25 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate); | 39 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate); |
26 }; | 40 }; |
27 | 41 |
28 } // namespace shell | 42 } // namespace shell |
29 } // namespace chromecast | 43 } // namespace chromecast |
30 | 44 |
31 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_ | 45 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_ |
OLD | NEW |