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

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

Issue 1999943002: Moving HTTP POST body from StartNavigationParams to CommonNavigationParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from clamy@. Created 4 years, 7 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/test/test_render_frame.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 "base/guid.h" 7 #include "base/guid.h"
8 #include "content/browser/frame_host/frame_tree.h" 8 #include "content/browser/frame_host/frame_tree.h"
9 #include "content/browser/frame_host/navigation_handle_impl.h" 9 #include "content/browser/frame_host/navigation_handle_impl.h"
10 #include "content/browser/frame_host/navigation_request.h" 10 #include "content/browser/frame_host/navigation_request.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 InitializeRenderFrameIfNeeded(); 362 InitializeRenderFrameIfNeeded();
363 363
364 if (IsBrowserSideNavigationEnabled()) { 364 if (IsBrowserSideNavigationEnabled()) {
365 BeginNavigationParams begin_params(std::string(), net::LOAD_NORMAL, 365 BeginNavigationParams begin_params(std::string(), net::LOAD_NORMAL,
366 has_user_gesture, false, 366 has_user_gesture, false,
367 REQUEST_CONTEXT_TYPE_HYPERLINK); 367 REQUEST_CONTEXT_TYPE_HYPERLINK);
368 CommonNavigationParams common_params; 368 CommonNavigationParams common_params;
369 common_params.url = url; 369 common_params.url = url;
370 common_params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault); 370 common_params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault);
371 common_params.transition = ui::PAGE_TRANSITION_LINK; 371 common_params.transition = ui::PAGE_TRANSITION_LINK;
372 OnBeginNavigation(common_params, begin_params, 372 OnBeginNavigation(common_params, begin_params);
373 scoped_refptr<ResourceRequestBody>());
374 } 373 }
375 } 374 }
376 375
377 void TestRenderFrameHost::DidChangeOpener(int opener_routing_id) { 376 void TestRenderFrameHost::DidChangeOpener(int opener_routing_id) {
378 OnDidChangeOpener(opener_routing_id); 377 OnDidChangeOpener(opener_routing_id);
379 } 378 }
380 379
381 void TestRenderFrameHost::DidEnforceStrictMixedContentChecking() { 380 void TestRenderFrameHost::DidEnforceStrictMixedContentChecking() {
382 OnEnforceStrictMixedContentChecking(); 381 OnEnforceStrictMixedContentChecking();
383 } 382 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 // cleared during DidFailProvisionalLoad). 431 // cleared during DidFailProvisionalLoad).
433 int page_id = entry ? entry->GetPageID() : -1; 432 int page_id = entry ? entry->GetPageID() : -1;
434 if (page_id == -1) { 433 if (page_id == -1) {
435 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(delegate()); 434 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(delegate());
436 page_id = web_contents->GetMaxPageIDForSiteInstance(GetSiteInstance()) + 1; 435 page_id = web_contents->GetMaxPageIDForSiteInstance(GetSiteInstance()) + 1;
437 } 436 }
438 return page_id; 437 return page_id;
439 } 438 }
440 439
441 } // namespace content 440 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_frame.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698