| 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 "content/public/browser/devtools_http_handler_delegate.h" | 8 #include "content/public/browser/devtools_http_handler_delegate.h" |
| 9 #include "content/public/browser/devtools_manager_delegate.h" | 9 #include "content/public/browser/devtools_manager_delegate.h" |
| 10 #include "net/socket/stream_listen_socket.h" | 10 #include "net/socket/stream_listen_socket.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class FilePath; | 13 class FilePath; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class BrowserContext; | 17 class BrowserContext; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace chromecast { | 20 namespace chromecast { |
| 21 namespace shell { | 21 namespace shell { |
| 22 | 22 |
| 23 class CastDevToolsDelegate : public content::DevToolsHttpHandlerDelegate { | 23 class CastDevToolsDelegate : public content::DevToolsHttpHandlerDelegate { |
| 24 public: | 24 public: |
| 25 CastDevToolsDelegate(); | 25 CastDevToolsDelegate(); |
| 26 virtual ~CastDevToolsDelegate(); | 26 ~CastDevToolsDelegate() override; |
| 27 | 27 |
| 28 // DevToolsHttpHandlerDelegate implementation. | 28 // DevToolsHttpHandlerDelegate implementation. |
| 29 std::string GetDiscoveryPageHTML() override; | 29 std::string GetDiscoveryPageHTML() override; |
| 30 bool BundlesFrontendResources() override; | 30 bool BundlesFrontendResources() override; |
| 31 base::FilePath GetDebugFrontendDir() override; | 31 base::FilePath GetDebugFrontendDir() override; |
| 32 scoped_ptr<net::ServerSocket> CreateSocketForTethering( | 32 scoped_ptr<net::ServerSocket> CreateSocketForTethering( |
| 33 std::string* name) override; | 33 std::string* name) override; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate); | 36 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 class CastDevToolsManagerDelegate : public content::DevToolsManagerDelegate { | 39 class CastDevToolsManagerDelegate : public content::DevToolsManagerDelegate { |
| 40 public: | 40 public: |
| 41 CastDevToolsManagerDelegate(); | 41 CastDevToolsManagerDelegate(); |
| 42 virtual ~CastDevToolsManagerDelegate(); | 42 ~CastDevToolsManagerDelegate() override; |
| 43 | 43 |
| 44 // DevToolsManagerDelegate implementation. | 44 // DevToolsManagerDelegate implementation. |
| 45 virtual void Inspect( | 45 void Inspect( |
| 46 content::BrowserContext* browser_context, | 46 content::BrowserContext* browser_context, |
| 47 content::DevToolsAgentHost* agent_host) override {} | 47 content::DevToolsAgentHost* agent_host) override {} |
| 48 virtual void DevToolsAgentStateChanged( | 48 void DevToolsAgentStateChanged( |
| 49 content::DevToolsAgentHost* agent_host, | 49 content::DevToolsAgentHost* agent_host, |
| 50 bool attached) override {} | 50 bool attached) override {} |
| 51 virtual base::DictionaryValue* HandleCommand( | 51 base::DictionaryValue* HandleCommand( |
| 52 content::DevToolsAgentHost* agent_host, | 52 content::DevToolsAgentHost* agent_host, |
| 53 base::DictionaryValue* command) override; | 53 base::DictionaryValue* command) override; |
| 54 virtual scoped_ptr<content::DevToolsTarget> CreateNewTarget( | 54 scoped_ptr<content::DevToolsTarget> CreateNewTarget(const GURL& url) override; |
| 55 const GURL& url) override; | 55 void EnumerateTargets(TargetCallback callback) override; |
| 56 virtual void EnumerateTargets(TargetCallback callback) override; | 56 std::string GetPageThumbnailData(const GURL& url) override; |
| 57 virtual std::string GetPageThumbnailData(const GURL& url) override; | |
| 58 | 57 |
| 59 private: | 58 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(CastDevToolsManagerDelegate); | 59 DISALLOW_COPY_AND_ASSIGN(CastDevToolsManagerDelegate); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace shell | 62 } // namespace shell |
| 64 } // namespace chromecast | 63 } // namespace chromecast |
| 65 | 64 |
| 66 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_ | 65 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_ |
| OLD | NEW |