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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 | 612 |
613 void RenderFrameDevToolsAgentHost::OnClientAttached() { | 613 void RenderFrameDevToolsAgentHost::OnClientAttached() { |
614 if (!web_contents()) | 614 if (!web_contents()) |
615 return; | 615 return; |
616 | 616 |
617 frame_trace_recorder_.reset(new DevToolsFrameTraceRecorder()); | 617 frame_trace_recorder_.reset(new DevToolsFrameTraceRecorder()); |
618 CreatePowerSaveBlocker(); | 618 CreatePowerSaveBlocker(); |
619 } | 619 } |
620 | 620 |
621 void RenderFrameDevToolsAgentHost::OnClientDetached() { | 621 void RenderFrameDevToolsAgentHost::OnClientDetached() { |
622 input_handler_->Detached(); | |
623 #if defined(OS_ANDROID) | 622 #if defined(OS_ANDROID) |
624 power_save_blocker_.reset(); | 623 power_save_blocker_.reset(); |
625 #endif | 624 #endif |
626 frame_trace_recorder_.reset(); | 625 frame_trace_recorder_.reset(); |
627 in_navigation_protocol_message_buffer_.clear(); | 626 in_navigation_protocol_message_buffer_.clear(); |
628 } | 627 } |
629 | 628 |
630 RenderFrameDevToolsAgentHost::~RenderFrameDevToolsAgentHost() { | 629 RenderFrameDevToolsAgentHost::~RenderFrameDevToolsAgentHost() { |
631 Instances::iterator it = std::find(g_instances.Get().begin(), | 630 Instances::iterator it = std::find(g_instances.Get().begin(), |
632 g_instances.Get().end(), | 631 g_instances.Get().end(), |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 RenderFrameHost* host) { | 1192 RenderFrameHost* host) { |
1194 return (current_ && current_->host() == host) || | 1193 return (current_ && current_->host() == host) || |
1195 (pending_ && pending_->host() == host); | 1194 (pending_ && pending_->host() == host); |
1196 } | 1195 } |
1197 | 1196 |
1198 bool RenderFrameDevToolsAgentHost::IsChildFrame() { | 1197 bool RenderFrameDevToolsAgentHost::IsChildFrame() { |
1199 return current_ && current_->host()->GetParent(); | 1198 return current_ && current_->host()->GetParent(); |
1200 } | 1199 } |
1201 | 1200 |
1202 } // namespace content | 1201 } // namespace content |
OLD | NEW |