Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: content/public/browser/devtools_manager_delegate.h

Issue 2263843002: DevTools: merge devtools target with devtools host, part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 3 Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
8 namespace base { 10 namespace base {
9 class DictionaryValue; 11 class DictionaryValue;
10 } 12 }
11 13
12 namespace content { 14 namespace content {
13 15
14 class BrowserContext; 16 class BrowserContext;
15 class DevToolsAgentHost; 17 class DevToolsAgentHost;
18 class RenderFrameHost;
16 19
17 class DevToolsManagerDelegate { 20 class DevToolsManagerDelegate {
18 public: 21 public:
19 virtual ~DevToolsManagerDelegate() {} 22 virtual ~DevToolsManagerDelegate() {}
20 23
21 // Opens the inspector for |agent_host|. 24 // Opens the inspector for |agent_host|.
22 virtual void Inspect(BrowserContext* browser_context, 25 virtual void Inspect(DevToolsAgentHost* agent_host) = 0;
23 DevToolsAgentHost* agent_host) = 0;
24 26
25 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host, 27 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host,
26 bool attached) = 0; 28 bool attached) = 0;
27 29
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
28 // Result ownership is passed to the caller. 36 // Result ownership is passed to the caller.
29 virtual base::DictionaryValue* HandleCommand( 37 virtual base::DictionaryValue* HandleCommand(
30 DevToolsAgentHost* agent_host, 38 DevToolsAgentHost* agent_host,
31 base::DictionaryValue* command) = 0; 39 base::DictionaryValue* command) = 0;
32 }; 40 };
33 41
34 } // namespace content 42 } // namespace content
35 43
36 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ 44 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698