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