| Index: content/public/browser/devtools_agent_host.h
|
| diff --git a/content/public/browser/devtools_agent_host.h b/content/public/browser/devtools_agent_host.h
|
| index e98f5dc9845f7e64082f82837d3821ee33e64dc7..6ec93f2c4e6c88959e409ceb32153e9d50522ec2 100644
|
| --- a/content/public/browser/devtools_agent_host.h
|
| +++ b/content/public/browser/devtools_agent_host.h
|
| @@ -28,6 +28,7 @@ namespace content {
|
|
|
| class BrowserContext;
|
| class DevToolsExternalAgentProxyDelegate;
|
| +class DevToolsManagerDelegate;
|
| class RenderFrameHost;
|
| class WebContents;
|
|
|
| @@ -43,6 +44,10 @@ class CONTENT_EXPORT DevToolsAgentHost
|
| static char kTypeBrowser[];
|
| static char kTypeOther[];
|
|
|
| + // This is temporary while we are merging http handler and discovery
|
| + // into content/.
|
| + static DevToolsManagerDelegate* GetDevToolsManagerDelegate();
|
| +
|
| // Latest DevTools protocol version supported.
|
| static std::string GetProtocolVersion();
|
|
|
| @@ -92,11 +97,20 @@ class CONTENT_EXPORT DevToolsAgentHost
|
|
|
| static bool IsDebuggerAttached(WebContents* web_contents);
|
|
|
| - typedef std::vector<scoped_refptr<DevToolsAgentHost> > List;
|
| + using List = std::vector<scoped_refptr<DevToolsAgentHost>>;
|
| +
|
| + using DiscoveryCallback = base::Callback<List()>;
|
|
|
| - // Returns all possible DevToolsAgentHosts.
|
| + // Registers embedder's custom host providers that are available via
|
| + // DiscoverAllHosts.
|
| + static void AddDiscoveryProvider(const DiscoveryCallback& callback);
|
| +
|
| + // Returns all DevToolsAgentHosts content is aware of.
|
| static List GetOrCreateAll();
|
|
|
| + // Returns all possible DevToolsAgentHosts embedder is aware of.
|
| + static List DiscoverAllHosts();
|
| +
|
| // Attaches |client| to this agent host to start debugging.
|
| // Returns true iff attach succeeded.
|
| virtual bool AttachClient(DevToolsAgentHostClient* client) = 0;
|
|
|