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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1088 if (wc) { | 1088 if (wc) { |
1089 wc->Activate(); | 1089 wc->Activate(); |
1090 return true; | 1090 return true; |
1091 } | 1091 } |
1092 return false; | 1092 return false; |
1093 } | 1093 } |
1094 | 1094 |
1095 void RenderFrameDevToolsAgentHost::Reload() { | 1095 void RenderFrameDevToolsAgentHost::Reload() { |
1096 WebContentsImpl* wc = static_cast<WebContentsImpl*>(web_contents()); | 1096 WebContentsImpl* wc = static_cast<WebContentsImpl*>(web_contents()); |
1097 if (wc) | 1097 if (wc) |
1098 wc->GetController().Reload(true); | 1098 wc->GetController().Reload(ReloadType::NORMAL, true); |
1099 } | 1099 } |
1100 | 1100 |
1101 bool RenderFrameDevToolsAgentHost::Close() { | 1101 bool RenderFrameDevToolsAgentHost::Close() { |
1102 if (web_contents()) { | 1102 if (web_contents()) { |
1103 web_contents()->ClosePage(); | 1103 web_contents()->ClosePage(); |
1104 return true; | 1104 return true; |
1105 } | 1105 } |
1106 return false; | 1106 return false; |
1107 } | 1107 } |
1108 | 1108 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 RenderFrameHost* host) { | 1193 RenderFrameHost* host) { |
1194 return (current_ && current_->host() == host) || | 1194 return (current_ && current_->host() == host) || |
1195 (pending_ && pending_->host() == host); | 1195 (pending_ && pending_->host() == host); |
1196 } | 1196 } |
1197 | 1197 |
1198 bool RenderFrameDevToolsAgentHost::IsChildFrame() { | 1198 bool RenderFrameDevToolsAgentHost::IsChildFrame() { |
1199 return current_ && current_->host()->GetParent(); | 1199 return current_ && current_->host()->GetParent(); |
1200 } | 1200 } |
1201 | 1201 |
1202 } // namespace content | 1202 } // namespace content |
OLD | NEW |