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_DEVTOOLS_DELEGATE_H_ | 5 #ifndef CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_ |
6 #define CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_ | 6 #define CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/devtools_manager_delegate.h" | 9 #include "content/public/browser/devtools_manager_delegate.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 class DevToolsAgentHost; | 12 class DevToolsAgentHost; |
13 } | 13 } |
14 | 14 |
15 namespace chromecast { | 15 namespace chromecast { |
16 namespace shell { | 16 namespace shell { |
17 | 17 |
18 class CastDevToolsDelegate : | 18 class CastDevToolsDelegate : |
19 public content::DevToolsManagerDelegate { | 19 public content::DevToolsManagerDelegate { |
20 public: | 20 public: |
21 CastDevToolsDelegate(); | 21 CastDevToolsDelegate(); |
22 ~CastDevToolsDelegate() override; | 22 ~CastDevToolsDelegate() override; |
23 | 23 |
24 // content::DevToolsManagerDelegate 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 GetDiscoveryPageHTML() override; | 25 std::string GetDiscoveryPageHTML() override; |
29 | 26 |
30 private: | 27 private: |
31 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate); | 28 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate); |
32 }; | 29 }; |
33 | 30 |
34 } // namespace shell | 31 } // namespace shell |
35 } // namespace chromecast | 32 } // namespace chromecast |
36 | 33 |
37 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_ | 34 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEVTOOLS_DELEGATE_H_ |
OLD | NEW |