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

Side by Side Diff: content/common/navigation_params.cc

Issue 1956383003: Forwarding POST body into renderer after a cross-site transfer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GoBackToCrossSitePostWithRedirect is fixed by this CL. Created 4 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/common/navigation_params.h" 5 #include "content/common/navigation_params.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "content/common/service_worker/service_worker_types.h" 8 #include "content/common/service_worker/service_worker_types.h"
9 #include "content/public/common/browser_side_navigation_policy.h" 9 #include "content/public/common/browser_side_navigation_policy.h"
10 #include "content/public/common/url_constants.h" 10 #include "content/public/common/url_constants.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 navigation_type(navigation_type), 55 navigation_type(navigation_type),
56 allow_download(allow_download), 56 allow_download(allow_download),
57 should_replace_current_entry(should_replace_current_entry), 57 should_replace_current_entry(should_replace_current_entry),
58 ui_timestamp(ui_timestamp), 58 ui_timestamp(ui_timestamp),
59 report_type(report_type), 59 report_type(report_type),
60 base_url_for_data_url(base_url_for_data_url), 60 base_url_for_data_url(base_url_for_data_url),
61 history_url_for_data_url(history_url_for_data_url), 61 history_url_for_data_url(history_url_for_data_url),
62 lofi_state(lofi_state), 62 lofi_state(lofi_state),
63 navigation_start(navigation_start), 63 navigation_start(navigation_start),
64 method(method), 64 method(method),
65 post_data(post_data) {} 65 post_data(post_data) {
66 // |method != "POST"| should imply absence of |post_data|.
67 DCHECK(method == "POST" || !post_data);
Łukasz Anforowicz 2016/06/01 16:28:38 I guess we could also repeat the "assertion" from
Charlie Reis 2016/06/01 23:46:32 Sounds like a good idea.
Łukasz Anforowicz 2016/06/02 22:07:04 I tried this in patchset 24, but it turns out that
68 }
66 69
67 CommonNavigationParams::CommonNavigationParams( 70 CommonNavigationParams::CommonNavigationParams(
68 const CommonNavigationParams& other) = default; 71 const CommonNavigationParams& other) = default;
69 72
70 CommonNavigationParams::~CommonNavigationParams() { 73 CommonNavigationParams::~CommonNavigationParams() {
71 } 74 }
72 75
73 BeginNavigationParams::BeginNavigationParams() 76 BeginNavigationParams::BeginNavigationParams()
74 : load_flags(0), 77 : load_flags(0),
75 has_user_gesture(false), 78 has_user_gesture(false),
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 const RequestNavigationParams& request_params) 187 const RequestNavigationParams& request_params)
185 : common_params(common_params), 188 : common_params(common_params),
186 start_params(start_params), 189 start_params(start_params),
187 request_params(request_params) { 190 request_params(request_params) {
188 } 191 }
189 192
190 NavigationParams::~NavigationParams() { 193 NavigationParams::~NavigationParams() {
191 } 194 }
192 195
193 } // namespace content 196 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698