| 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 "base/memory/scoped_ptr.h" |
| 9 |
| 10 namespace base { |
| 11 class DictionaryValue; |
| 12 } |
| 13 |
| 8 namespace content { | 14 namespace content { |
| 9 | 15 |
| 10 class BrowserContext; | 16 class BrowserContext; |
| 11 class DevToolsAgentHost; | 17 class DevToolsAgentHost; |
| 12 | 18 |
| 13 class DevToolsManagerDelegate { | 19 class DevToolsManagerDelegate { |
| 14 public: | 20 public: |
| 15 virtual ~DevToolsManagerDelegate() {} | 21 virtual ~DevToolsManagerDelegate() {} |
| 16 | 22 |
| 17 // Opens the inspector for |agent_host|. | 23 // Opens the inspector for |agent_host|. |
| 18 virtual void Inspect(BrowserContext* browser_context, | 24 virtual void Inspect(BrowserContext* browser_context, |
| 19 DevToolsAgentHost* agent_host) = 0; | 25 DevToolsAgentHost* agent_host) = 0; |
| 26 |
| 27 // Result ownership is passed to the caller. |
| 28 virtual base::DictionaryValue* HandleCommand( |
| 29 DevToolsAgentHost* agent_host, |
| 30 base::DictionaryValue* command) = 0; |
| 20 }; | 31 }; |
| 21 | 32 |
| 22 } // namespace content | 33 } // namespace content |
| 23 | 34 |
| 24 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 35 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
| OLD | NEW |