ApplicationImpl cleanup, part 1:
[chromium-blink-merge.git] / content / public / browser / devtools_manager_delegate.h
blobd34e7af3957ed5eea0cc835fb73cb348f45b4f4c
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
8 namespace base {
9 class DictionaryValue;
12 namespace content {
14 class BrowserContext;
15 class DevToolsAgentHost;
17 class DevToolsManagerDelegate {
18 public:
19 virtual ~DevToolsManagerDelegate() {}
21 // Opens the inspector for |agent_host|.
22 virtual void Inspect(BrowserContext* browser_context,
23 DevToolsAgentHost* agent_host) = 0;
25 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host,
26 bool attached) = 0;
28 // Result ownership is passed to the caller.
29 virtual base::DictionaryValue* HandleCommand(
30 DevToolsAgentHost* agent_host,
31 base::DictionaryValue* command) = 0;
34 } // namespace content
36 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_