Chromium Code Reviews| 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..cfc376f9b500caa119b4603ad1710e22d905851a 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,18 @@ 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. |
| + static void AddDiscoveryProvider(const DiscoveryCallback& callback); |
|
dgozman
2016/08/25 01:08:11
Add a comment to this one.
|
| + |
| + // 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; |