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

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

Issue 2272213003: DevTools: remove devtools_discovery (merged into content). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix 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
« no previous file with comments | « content/public/browser/devtools_agent_host.h ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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> 8 #include <string>
9 #include "base/memory/ref_counted.h"
10 #include "url/gurl.h"
9 11
10 namespace base { 12 namespace base {
11 class DictionaryValue; 13 class DictionaryValue;
12 } 14 }
13 15
14 namespace content { 16 namespace content {
15 17
16 class BrowserContext; 18 class BrowserContext;
17 class DevToolsAgentHost; 19 class DevToolsAgentHost;
18 class RenderFrameHost; 20 class RenderFrameHost;
19 21
20 class DevToolsManagerDelegate { 22 class DevToolsManagerDelegate {
21 public: 23 public:
22 virtual ~DevToolsManagerDelegate() {} 24 virtual ~DevToolsManagerDelegate() {}
23 25
24 // Opens the inspector for |agent_host|. 26 // Opens the inspector for |agent_host|.
25 virtual void Inspect(DevToolsAgentHost* agent_host) = 0; 27 virtual void Inspect(DevToolsAgentHost* agent_host) = 0;
26 28
27 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host, 29 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host,
28 bool attached) = 0; 30 bool attached) = 0;
29 31
30 // Returns DevToolsAgentHost type to use for given |host| target. 32 // Returns DevToolsAgentHost type to use for given |host| target.
31 virtual std::string GetTargetType(RenderFrameHost* host) = 0; 33 virtual std::string GetTargetType(RenderFrameHost* host) = 0;
32 34
33 // Returns DevToolsAgentHost title to use for given |host| target. 35 // Returns DevToolsAgentHost title to use for given |host| target.
34 virtual std::string GetTargetTitle(RenderFrameHost* host) = 0; 36 virtual std::string GetTargetTitle(RenderFrameHost* host) = 0;
35 37
38 // Creates new inspectable target given the |url|.
39 virtual scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url) = 0;
40
36 // Result ownership is passed to the caller. 41 // Result ownership is passed to the caller.
37 virtual base::DictionaryValue* HandleCommand( 42 virtual base::DictionaryValue* HandleCommand(
38 DevToolsAgentHost* agent_host, 43 DevToolsAgentHost* agent_host,
39 base::DictionaryValue* command) = 0; 44 base::DictionaryValue* command) = 0;
40 }; 45 };
41 46
42 } // namespace content 47 } // namespace content
43 48
44 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ 49 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/devtools_agent_host.h ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698