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 c4246508fb1b594bf7548c906147f0d8f4cdc07f..543499757977571432b0cde8f7b4f8bb5ac918ad 100644 |
--- a/content/public/browser/devtools_agent_host.h |
+++ b/content/public/browser/devtools_agent_host.h |
@@ -13,6 +13,7 @@ |
#include "base/memory/ref_counted.h" |
#include "content/common/content_export.h" |
#include "content/public/browser/devtools_agent_host_client.h" |
+#include "url/gurl.h" |
namespace content { |
@@ -48,8 +49,10 @@ class CONTENT_EXPORT DevToolsAgentHost |
static bool IsDebuggerAttached(WebContents* web_contents); |
- // Returns a list of all existing WebContents that can be debugged. |
- static std::vector<WebContents*> GetInspectableWebContents(); |
+ typedef std::vector<scoped_refptr<DevToolsAgentHost> > List; |
+ |
+ // Returns all possible DevToolsAgentHosts |
+ static List GetOrCreateAll(); |
// Client attaches to this agent host to start debugging it. |
virtual void AttachClient(DevToolsAgentHostClient* client) = 0; |
@@ -82,6 +85,9 @@ class CONTENT_EXPORT DevToolsAgentHost |
// Returns true if DevToolsAgentHost is for worker. |
virtual bool IsWorker() const = 0; |
+ // Returns url associated with agent host. |
+ virtual GURL GetURL() = 0; |
+ |
// Terminates all debugging sessions and detaches all clients. |
static void DetachAllClients(); |