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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 tracing_handler_->OnClientDetached(); |
| 265 power_handler_->OnClientDetached(); |
265 ClientDetachedFromRenderer(); | 266 ClientDetachedFromRenderer(); |
266 } | 267 } |
267 | 268 |
268 void RenderViewDevToolsAgentHost::ClientDetachedFromRenderer() { | 269 void RenderViewDevToolsAgentHost::ClientDetachedFromRenderer() { |
269 if (!render_view_host_) | 270 if (!render_view_host_) |
270 return; | 271 return; |
271 | 272 |
272 InnerClientDetachedFromRenderer(); | 273 InnerClientDetachedFromRenderer(); |
273 | 274 |
274 // TODO(kaznacheev): Move this call back to DevToolsManagerImpl when | 275 // TODO(kaznacheev): Move this call back to DevToolsManagerImpl when |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 | 467 |
467 void RenderViewDevToolsAgentHost::OnDispatchOnInspectorFrontend( | 468 void RenderViewDevToolsAgentHost::OnDispatchOnInspectorFrontend( |
468 const std::string& message) { | 469 const std::string& message) { |
469 if (!render_view_host_) | 470 if (!render_view_host_) |
470 return; | 471 return; |
471 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorFrontend( | 472 DevToolsManagerImpl::GetInstance()->DispatchOnInspectorFrontend( |
472 this, message); | 473 this, message); |
473 } | 474 } |
474 | 475 |
475 } // namespace content | 476 } // namespace content |
OLD | NEW |