| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/devtools/devtools_frontend_host.h" | 5 #include "content/browser/devtools/devtools_frontend_host.h" |
| 6 | 6 |
| 7 #include "content/browser/devtools/devtools_manager_impl.h" | 7 #include "content/browser/devtools/devtools_manager_impl.h" |
| 8 #include "content/browser/renderer_host/render_view_host_impl.h" | 8 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 9 #include "content/browser/web_contents/web_contents_impl.h" | 9 #include "content/browser/web_contents/web_contents_impl.h" |
| 10 #include "content/common/devtools_messages.h" | 10 #include "content/common/devtools_messages.h" |
| 11 #include "content/public/browser/browser_thread.h" |
| 11 #include "content/public/browser/devtools_client_host.h" | 12 #include "content/public/browser/devtools_client_host.h" |
| 12 #include "content/public/browser/devtools_frontend_host_delegate.h" | 13 #include "content/public/browser/devtools_frontend_host_delegate.h" |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 | 16 |
| 16 // static | 17 // static |
| 17 DevToolsClientHost* DevToolsClientHost::CreateDevToolsFrontendHost( | 18 DevToolsClientHost* DevToolsClientHost::CreateDevToolsFrontendHost( |
| 18 WebContents* client_web_contents, | 19 WebContents* client_web_contents, |
| 19 DevToolsFrontendHostDelegate* delegate) { | 20 DevToolsFrontendHostDelegate* delegate) { |
| 20 return new DevToolsFrontendHost( | 21 return new DevToolsFrontendHost( |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 void DevToolsFrontendHost::OnDispatchOnInspectorBackend( | 87 void DevToolsFrontendHost::OnDispatchOnInspectorBackend( |
| 87 const std::string& message) { | 88 const std::string& message) { |
| 88 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorBackend(this, message); | 89 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorBackend(this, message); |
| 89 } | 90 } |
| 90 | 91 |
| 91 void DevToolsFrontendHost::OnDispatchOnEmbedder( | 92 void DevToolsFrontendHost::OnDispatchOnEmbedder( |
| 92 const std::string& message) { | 93 const std::string& message) { |
| 93 delegate_->DispatchOnEmbedder(message); | 94 delegate_->DispatchOnEmbedder(message); |
| 94 } | 95 } |
| 95 | 96 |
| 97 |
| 98 |
| 96 } // namespace content | 99 } // namespace content |
| OLD | NEW |