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 "components/devtools_http_handler/devtools_http_handler_delegate.h" |
10 | 10 |
11 namespace chromecast { | 11 namespace chromecast { |
12 namespace shell { | 12 namespace shell { |
13 | 13 |
14 class CastDevToolsDelegate : | 14 class CastDevToolsDelegate : |
15 public devtools_http_handler::DevToolsHttpHandlerDelegate { | 15 public devtools_http_handler::DevToolsHttpHandlerDelegate { |
16 public: | 16 public: |
17 CastDevToolsDelegate(); | 17 CastDevToolsDelegate(); |
18 ~CastDevToolsDelegate() override; | 18 ~CastDevToolsDelegate() override; |
19 | 19 |
20 // devtools_http_handler::DevToolsHttpHandlerDelegate implementation. | 20 // devtools_http_handler::DevToolsHttpHandlerDelegate implementation. |
21 std::string GetDiscoveryPageHTML() override; | 21 std::string GetDiscoveryPageHTML() override; |
22 std::string GetFrontendResource(const std::string& path) override; | 22 std::string GetFrontendResource(const std::string& path) override; |
23 std::string GetPageThumbnailData(const GURL& url) override; | |
24 content::DevToolsExternalAgentProxyDelegate* | |
25 HandleWebSocketConnection(const std::string& path) override; | |
26 | 23 |
27 private: | 24 private: |
28 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate); | 25 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate); |
29 }; | 26 }; |
30 | 27 |
31 } // namespace shell | 28 } // namespace shell |
32 } // namespace chromecast | 29 } // namespace chromecast |
33 | 30 |
34 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_ | 31 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_ |
OLD | NEW |