| Index: content/browser/devtools/devtools_agent_host_impl.cc
|
| diff --git a/content/browser/devtools/devtools_agent_host_impl.cc b/content/browser/devtools/devtools_agent_host_impl.cc
|
| index 1309eac12e157356ebe73352f9d731bc1c935470..d2dc68ca500f3053149e2c373b2424b14b92e19e 100644
|
| --- a/content/browser/devtools/devtools_agent_host_impl.cc
|
| +++ b/content/browser/devtools/devtools_agent_host_impl.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/guid.h"
|
| #include "base/lazy_instance.h"
|
| #include "content/browser/devtools/devtools_manager_impl.h"
|
| +#include "content/browser/devtools/embedded_worker_devtools_manager.h"
|
| #include "content/browser/devtools/forwarding_agent_host.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/devtools_manager_delegate.h"
|
| @@ -27,6 +28,19 @@ base::LazyInstance<AgentStateCallbacks>::Leaky g_callbacks =
|
| LAZY_INSTANCE_INITIALIZER;
|
| } // namespace
|
|
|
| +// static
|
| +DevToolsAgentHost::List DevToolsAgentHost::GetOrCreateAll() {
|
| + List result = EmbeddedWorkerDevToolsManager::GetInstance()
|
| + ->GetOrCreateAllAgentHosts();
|
| + std::vector<WebContents*> wc_list =
|
| + DevToolsAgentHostImpl::GetInspectableWebContents();
|
| + for (std::vector<WebContents*>::iterator it = wc_list.begin();
|
| + it != wc_list.end(); ++it) {
|
| + result.push_back(GetOrCreateFor(*it));
|
| + }
|
| + return result;
|
| +}
|
| +
|
| DevToolsAgentHostImpl::DevToolsAgentHostImpl()
|
| : id_(base::GenerateGUID()),
|
| client_(NULL) {
|
| @@ -103,6 +117,10 @@ bool DevToolsAgentHostImpl::IsWorker() const {
|
| return false;
|
| }
|
|
|
| +GURL DevToolsAgentHostImpl::GetURL() {
|
| + return GURL();
|
| +}
|
| +
|
| void DevToolsAgentHostImpl::HostClosed() {
|
| if (!client_)
|
| return;
|
|
|