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 CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "content/public/browser/devtools_manager_delegate.h" | 12 #include "content/public/browser/devtools_manager_delegate.h" |
13 | 13 |
14 class DevToolsNetworkProtocolHandler; | 14 class DevToolsNetworkProtocolHandler; |
15 | 15 |
16 class ChromeDevToolsManagerDelegate : public content::DevToolsManagerDelegate { | 16 class ChromeDevToolsManagerDelegate : public content::DevToolsManagerDelegate { |
17 public: | 17 public: |
18 ChromeDevToolsManagerDelegate(); | 18 ChromeDevToolsManagerDelegate(); |
19 ~ChromeDevToolsManagerDelegate() override; | 19 ~ChromeDevToolsManagerDelegate() override; |
20 | 20 |
21 // content::DevToolsManagerDelegate implementation. | 21 // content::DevToolsManagerDelegate implementation. |
22 void Inspect(content::BrowserContext* browser_context, | 22 void Inspect(content::DevToolsAgentHost* agent_host) override; |
23 content::DevToolsAgentHost* agent_host) override; | |
24 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, | 23 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, |
25 bool attached) override; | 24 bool attached) override; |
26 base::DictionaryValue* HandleCommand( | 25 base::DictionaryValue* HandleCommand( |
27 content::DevToolsAgentHost* agent_host, | 26 content::DevToolsAgentHost* agent_host, |
28 base::DictionaryValue* command_dict) override; | 27 base::DictionaryValue* command_dict) override; |
| 28 std::string GetTargetType(content::RenderFrameHost* host) override; |
29 | 29 |
30 private: | 30 private: |
31 std::unique_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_; | 31 std::unique_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_; |
32 | 32 |
33 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); | 33 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); |
34 }; | 34 }; |
35 | 35 |
36 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ | 36 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ |
OLD | NEW |