Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: content/browser/devtools/render_frame_devtools_agent_host.cc

Issue 2561983002: NavigationController: Reload methods migration (Closed)
Patch Set: one more mac build fix Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 if (wc) { 1070 if (wc) {
1071 wc->Activate(); 1071 wc->Activate();
1072 return true; 1072 return true;
1073 } 1073 }
1074 return false; 1074 return false;
1075 } 1075 }
1076 1076
1077 void RenderFrameDevToolsAgentHost::Reload() { 1077 void RenderFrameDevToolsAgentHost::Reload() {
1078 WebContentsImpl* wc = static_cast<WebContentsImpl*>(web_contents()); 1078 WebContentsImpl* wc = static_cast<WebContentsImpl*>(web_contents());
1079 if (wc) 1079 if (wc)
1080 wc->GetController().Reload(true); 1080 wc->GetController().Reload(ReloadType::NORMAL, true);
1081 } 1081 }
1082 1082
1083 bool RenderFrameDevToolsAgentHost::Close() { 1083 bool RenderFrameDevToolsAgentHost::Close() {
1084 if (web_contents()) { 1084 if (web_contents()) {
1085 web_contents()->ClosePage(); 1085 web_contents()->ClosePage();
1086 return true; 1086 return true;
1087 } 1087 }
1088 return false; 1088 return false;
1089 } 1089 }
1090 1090
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 RenderFrameHost* host) { 1175 RenderFrameHost* host) {
1176 return (current_ && current_->host() == host) || 1176 return (current_ && current_->host() == host) ||
1177 (pending_ && pending_->host() == host); 1177 (pending_ && pending_->host() == host);
1178 } 1178 }
1179 1179
1180 bool RenderFrameDevToolsAgentHost::IsChildFrame() { 1180 bool RenderFrameDevToolsAgentHost::IsChildFrame() {
1181 return current_ && current_->host()->GetParent(); 1181 return current_ && current_->host()->GetParent();
1182 } 1182 }
1183 1183
1184 } // namespace content 1184 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698