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 dd18a53886b177a6fce02e3e1777d2564c224c3d..bd327cc8c6e7b03da68b0b5ac5266110cc15da6e 100644 |
| --- a/content/public/browser/devtools_agent_host.h |
| +++ b/content/public/browser/devtools_agent_host.h |
| @@ -9,8 +9,10 @@ |
| #include <vector> |
| #include "base/basictypes.h" |
| +#include "base/callback_forward.h" |
| #include "base/memory/ref_counted.h" |
| #include "content/common/content_export.h" |
| +#include "url/gurl.h" |
| namespace content { |
| @@ -43,6 +45,11 @@ class CONTENT_EXPORT DevToolsAgentHost |
| static scoped_refptr<DevToolsAgentHost> GetForWorker(int worker_process_id, |
| int worker_route_id); |
| + typedef std::vector<scoped_refptr<DevToolsAgentHost> > List; |
| + typedef base::Callback<void(const List&)> Callback; |
|
dgozman
2014/07/14 11:17:24
AllHostsCallback
vkuzkokov
2014/07/14 15:31:33
ListCallback
|
| + // Returns all possible DevToolsAgentHosts |
| + static void GetOrCreateAllHosts(const Callback& callback); |
| + |
| // Creates DevToolsAgentHost that communicates to the target by means of |
| // provided |delegate|. |delegate| ownership is passed to the created agent |
| // host. |
| @@ -76,6 +83,9 @@ class CONTENT_EXPORT DevToolsAgentHost |
| // Returns true if DevToolsAgentHost is for worker. |
| virtual bool IsWorker() const = 0; |
|
dgozman
2014/07/14 11:17:25
You need to remove this method, and instead add Ge
|
| + // Returns url associated with agent host. |
| + virtual GURL GetURL() = 0; |
| + |
| protected: |
| friend class base::RefCounted<DevToolsAgentHost>; |
| virtual ~DevToolsAgentHost() {} |