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

Side by Side Diff: content/test/test_render_frame_host.cc

Issue 483773002: PlzNavigate: implement CommitNavigation on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fix compilation error Created 6 years, 2 months 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/test_render_frame_host.h" 5 #include "content/test/test_render_frame_host.h"
6 6
7 #include "content/browser/frame_host/frame_tree.h" 7 #include "content/browser/frame_host/frame_tree.h"
8 #include "content/browser/frame_host/render_frame_host_delegate.h" 8 #include "content/browser/frame_host/render_frame_host_delegate.h"
9 #include "content/common/frame_messages.h" 9 #include "content/common/frame_messages.h"
10 #include "content/test/test_render_view_host.h" 10 #include "content/test/test_render_view_host.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 url, 169 url,
170 false, 170 false,
171 file_path_for_history_item ? "data" : NULL, 171 file_path_for_history_item ? "data" : NULL,
172 file_path_for_history_item); 172 file_path_for_history_item);
173 173
174 FrameHostMsg_DidCommitProvisionalLoad msg(GetRoutingID(), params); 174 FrameHostMsg_DidCommitProvisionalLoad msg(GetRoutingID(), params);
175 OnDidCommitProvisionalLoad(msg); 175 OnDidCommitProvisionalLoad(msg);
176 } 176 }
177 177
178 void TestRenderFrameHost::SendBeginNavigationWithURL(const GURL& url) { 178 void TestRenderFrameHost::SendBeginNavigationWithURL(const GURL& url) {
179 FrameHostMsg_BeginNavigation_Params params; 179 FrameHostMsg_BeginNavigation_Params begin_params;
180 params.method = "GET"; 180 CommonNavigationParams common_params;
181 params.url = url; 181 begin_params.method = "GET";
182 params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault); 182 begin_params.load_flags = net::LOAD_NORMAL;
183 params.load_flags = net::LOAD_NORMAL; 183 begin_params.has_user_gesture = false;
184 params.has_user_gesture = false; 184 common_params.url = url;
185 params.transition_type = ui::PAGE_TRANSITION_LINK; 185 common_params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault);
186 params.should_replace_current_entry = false; 186 common_params.transition = ui::PAGE_TRANSITION_LINK;
187 params.allow_download = true; 187 OnBeginNavigation(begin_params, common_params);
188 OnBeginNavigation(params);
189 } 188 }
190 189
191 void TestRenderFrameHost::DidDisownOpener() { 190 void TestRenderFrameHost::DidDisownOpener() {
192 OnDidDisownOpener(); 191 OnDidDisownOpener();
193 } 192 }
194 193
195 } // namespace content 194 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698