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