| Index: content/browser/devtools/devtools_manager_impl.cc
|
| diff --git a/content/browser/devtools/devtools_manager_impl.cc b/content/browser/devtools/devtools_manager_impl.cc
|
| index 56b2dd7d2f420cd1830a9b9d6a431a4acd3bbe3b..0c560404e9167a3c26e1d1b921a9020d056dfea3 100644
|
| --- a/content/browser/devtools/devtools_manager_impl.cc
|
| +++ b/content/browser/devtools/devtools_manager_impl.cc
|
| @@ -13,7 +13,9 @@
|
| #include "content/browser/renderer_host/render_view_host_impl.h"
|
| #include "content/browser/web_contents/web_contents_impl.h"
|
| #include "content/public/browser/browser_thread.h"
|
| +#include "content/public/browser/content_browser_client.h"
|
| #include "content/public/browser/devtools_client_host.h"
|
| +#include "content/public/browser/devtools_manager_delegate.h"
|
|
|
| namespace content {
|
|
|
| @@ -27,7 +29,8 @@ DevToolsManagerImpl* DevToolsManagerImpl::GetInstance() {
|
| return Singleton<DevToolsManagerImpl>::get();
|
| }
|
|
|
| -DevToolsManagerImpl::DevToolsManagerImpl() {
|
| +DevToolsManagerImpl::DevToolsManagerImpl()
|
| + : delegate_(GetContentClient()->browser()->GetDevToolsManagerDelegate()) {
|
| }
|
|
|
| DevToolsManagerImpl::~DevToolsManagerImpl() {
|
| @@ -35,6 +38,12 @@ DevToolsManagerImpl::~DevToolsManagerImpl() {
|
| DCHECK(client_to_agent_host_.empty());
|
| }
|
|
|
| +void DevToolsManagerImpl::Inspect(BrowserContext* browser_context,
|
| + DevToolsAgentHost* agent_host) {
|
| + if (delegate_)
|
| + delegate_->Inspect(browser_context, agent_host);
|
| +}
|
| +
|
| DevToolsClientHost* DevToolsManagerImpl::GetDevToolsClientHostFor(
|
| DevToolsAgentHostImpl* agent_host_impl) {
|
| AgentToClientHostMap::iterator it =
|
|
|