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/render_view_devtools_agent_host.h" | 5 #include "content/browser/devtools/render_view_devtools_agent_host.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "content/browser/child_process_security_policy_impl.h" | 9 #include "content/browser/child_process_security_policy_impl.h" |
10 #include "content/browser/devtools/devtools_manager_impl.h" | 10 #include "content/browser/devtools/devtools_manager_impl.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 InitDisplaySleepBlocker(render_view_host_->GetView()->GetNativeView()); | 254 InitDisplaySleepBlocker(render_view_host_->GetView()->GetNativeView()); |
255 } | 255 } |
256 #endif | 256 #endif |
257 } | 257 } |
258 | 258 |
259 void RenderViewDevToolsAgentHost::OnClientDetached() { | 259 void RenderViewDevToolsAgentHost::OnClientDetached() { |
260 #if defined(OS_ANDROID) | 260 #if defined(OS_ANDROID) |
261 power_save_blocker_.reset(); | 261 power_save_blocker_.reset(); |
262 #endif | 262 #endif |
263 overrides_handler_->OnClientDetached(); | 263 overrides_handler_->OnClientDetached(); |
| 264 tracing_handler_->OnClientDetached(); |
264 ClientDetachedFromRenderer(); | 265 ClientDetachedFromRenderer(); |
265 } | 266 } |
266 | 267 |
267 void RenderViewDevToolsAgentHost::ClientDetachedFromRenderer() { | 268 void RenderViewDevToolsAgentHost::ClientDetachedFromRenderer() { |
268 if (!render_view_host_) | 269 if (!render_view_host_) |
269 return; | 270 return; |
270 | 271 |
271 InnerClientDetachedFromRenderer(); | 272 InnerClientDetachedFromRenderer(); |
272 | 273 |
273 // TODO(kaznacheev): Move this call back to DevToolsManagerImpl when | 274 // TODO(kaznacheev): Move this call back to DevToolsManagerImpl when |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 | 466 |
466 void RenderViewDevToolsAgentHost::OnDispatchOnInspectorFrontend( | 467 void RenderViewDevToolsAgentHost::OnDispatchOnInspectorFrontend( |
467 const std::string& message) { | 468 const std::string& message) { |
468 if (!render_view_host_) | 469 if (!render_view_host_) |
469 return; | 470 return; |
470 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorFrontend( | 471 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorFrontend( |
471 this, message); | 472 this, message); |
472 } | 473 } |
473 | 474 |
474 } // namespace content | 475 } // namespace content |
OLD | NEW |