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 CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
7 | 7 |
8 namespace base { | 8 namespace base { |
9 class DictionaryValue; | 9 class DictionaryValue; |
10 } | 10 } |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class BrowserContext; | 14 class BrowserContext; |
15 class DevToolsAgentHost; | 15 class DevToolsAgentHost; |
16 class RenderFrameHost; | |
17 class WebContents; | |
dgozman
2016/08/22 23:09:07
remove
| |
16 | 18 |
17 class DevToolsManagerDelegate { | 19 class DevToolsManagerDelegate { |
18 public: | 20 public: |
19 virtual ~DevToolsManagerDelegate() {} | 21 virtual ~DevToolsManagerDelegate() {} |
20 | 22 |
21 // Opens the inspector for |agent_host|. | 23 // Opens the inspector for |agent_host|. |
22 virtual void Inspect(BrowserContext* browser_context, | 24 virtual void Inspect(DevToolsAgentHost* agent_host) = 0; |
23 DevToolsAgentHost* agent_host) = 0; | |
24 | 25 |
25 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host, | 26 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host, |
26 bool attached) = 0; | 27 bool attached) = 0; |
27 | 28 |
29 // Returns DevToolsAgentHost type to use for given |host| target. | |
30 virtual std::string GetTargetType(RenderFrameHost* host) = 0; | |
31 | |
28 // Result ownership is passed to the caller. | 32 // Result ownership is passed to the caller. |
29 virtual base::DictionaryValue* HandleCommand( | 33 virtual base::DictionaryValue* HandleCommand( |
30 DevToolsAgentHost* agent_host, | 34 DevToolsAgentHost* agent_host, |
31 base::DictionaryValue* command) = 0; | 35 base::DictionaryValue* command) = 0; |
32 }; | 36 }; |
33 | 37 |
34 } // namespace content | 38 } // namespace content |
35 | 39 |
36 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 40 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
OLD | NEW |