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_frame_devtools_agent_host.h" | 5 #include "content/browser/devtools/render_frame_devtools_agent_host.h" |
6 | 6 |
7 #include <tuple> | 7 #include <tuple> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/guid.h" | 10 #include "base/guid.h" |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 | 531 |
532 // TODO(kaznacheev): Move this call back to DevToolsManager when | 532 // TODO(kaznacheev): Move this call back to DevToolsManager when |
533 // extensions::ProcessManager no longer relies on this notification. | 533 // extensions::ProcessManager no longer relies on this notification. |
534 DevToolsAgentHostImpl::NotifyCallbacks(this, true); | 534 DevToolsAgentHostImpl::NotifyCallbacks(this, true); |
535 } | 535 } |
536 | 536 |
537 void RenderFrameDevToolsAgentHost::OnClientDetached() { | 537 void RenderFrameDevToolsAgentHost::OnClientDetached() { |
538 #if defined(OS_ANDROID) | 538 #if defined(OS_ANDROID) |
539 power_save_blocker_.reset(); | 539 power_save_blocker_.reset(); |
540 #endif | 540 #endif |
| 541 browser_handler_->Detached(); |
541 if (emulation_handler_) | 542 if (emulation_handler_) |
542 emulation_handler_->Detached(); | 543 emulation_handler_->Detached(); |
543 if (page_handler_) | 544 if (page_handler_) |
544 page_handler_->Detached(); | 545 page_handler_->Detached(); |
545 service_worker_handler_->Detached(); | 546 service_worker_handler_->Detached(); |
546 tracing_handler_->Detached(); | 547 tracing_handler_->Detached(); |
547 frame_trace_recorder_.reset(); | 548 frame_trace_recorder_.reset(); |
548 in_navigation_protocol_message_buffer_.clear(); | 549 in_navigation_protocol_message_buffer_.clear(); |
549 | 550 |
550 // TODO(kaznacheev): Move this call back to DevToolsManager when | 551 // TODO(kaznacheev): Move this call back to DevToolsManager when |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 RenderFrameHost* host) { | 1027 RenderFrameHost* host) { |
1027 return (current_ && current_->host() == host) || | 1028 return (current_ && current_->host() == host) || |
1028 (pending_ && pending_->host() == host); | 1029 (pending_ && pending_->host() == host); |
1029 } | 1030 } |
1030 | 1031 |
1031 bool RenderFrameDevToolsAgentHost::IsChildFrame() { | 1032 bool RenderFrameDevToolsAgentHost::IsChildFrame() { |
1032 return current_ && current_->host()->GetParent(); | 1033 return current_ && current_->host()->GetParent(); |
1033 } | 1034 } |
1034 | 1035 |
1035 } // namespace content | 1036 } // namespace content |
OLD | NEW |