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