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

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

Issue 2689653003: PlzNavigate: Enforce 'form-action' CSP on the browser-side. (Closed)
Patch Set: PlzNavigate: Enforce 'form-action' CSP on the browser-side. Created 3 years, 10 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 "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/common/service_worker/service_worker_types.h" 9 #include "content/common/service_worker/service_worker_types.h"
10 #include "content/public/common/appcache_info.h" 10 #include "content/public/common/appcache_info.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const CommonNavigationParams& other) = default; 79 const CommonNavigationParams& other) = default;
80 80
81 CommonNavigationParams::~CommonNavigationParams() { 81 CommonNavigationParams::~CommonNavigationParams() {
82 } 82 }
83 83
84 BeginNavigationParams::BeginNavigationParams() 84 BeginNavigationParams::BeginNavigationParams()
85 : load_flags(0), 85 : load_flags(0),
86 has_user_gesture(false), 86 has_user_gesture(false),
87 skip_service_worker(false), 87 skip_service_worker(false),
88 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION), 88 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION),
89 mixed_content_context_type(blink::WebMixedContentContextType::Blockable) { 89 mixed_content_context_type(blink::WebMixedContentContextType::Blockable),
90 } 90 is_form_submission(false) {}
91 91
92 BeginNavigationParams::BeginNavigationParams( 92 BeginNavigationParams::BeginNavigationParams(
93 std::string headers, 93 std::string headers,
94 int load_flags, 94 int load_flags,
95 bool has_user_gesture, 95 bool has_user_gesture,
96 bool skip_service_worker, 96 bool skip_service_worker,
97 RequestContextType request_context_type, 97 RequestContextType request_context_type,
98 blink::WebMixedContentContextType mixed_content_context_type, 98 blink::WebMixedContentContextType mixed_content_context_type,
99 bool is_form_submission,
99 const base::Optional<url::Origin>& initiator_origin) 100 const base::Optional<url::Origin>& initiator_origin)
100 : headers(headers), 101 : headers(headers),
101 load_flags(load_flags), 102 load_flags(load_flags),
102 has_user_gesture(has_user_gesture), 103 has_user_gesture(has_user_gesture),
103 skip_service_worker(skip_service_worker), 104 skip_service_worker(skip_service_worker),
104 request_context_type(request_context_type), 105 request_context_type(request_context_type),
105 mixed_content_context_type(mixed_content_context_type), 106 mixed_content_context_type(mixed_content_context_type),
107 is_form_submission(is_form_submission),
106 initiator_origin(initiator_origin) {} 108 initiator_origin(initiator_origin) {}
107 109
108 BeginNavigationParams::BeginNavigationParams( 110 BeginNavigationParams::BeginNavigationParams(
109 const BeginNavigationParams& other) = default; 111 const BeginNavigationParams& other) = default;
110 112
111 BeginNavigationParams::~BeginNavigationParams() {} 113 BeginNavigationParams::~BeginNavigationParams() {}
112 114
113 StartNavigationParams::StartNavigationParams() 115 StartNavigationParams::StartNavigationParams()
114 : transferred_request_child_id(-1), 116 : transferred_request_child_id(-1),
115 transferred_request_request_id(-1) { 117 transferred_request_request_id(-1) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 const RequestNavigationParams& request_params) 201 const RequestNavigationParams& request_params)
200 : common_params(common_params), 202 : common_params(common_params),
201 start_params(start_params), 203 start_params(start_params),
202 request_params(request_params) { 204 request_params(request_params) {
203 } 205 }
204 206
205 NavigationParams::~NavigationParams() { 207 NavigationParams::~NavigationParams() {
206 } 208 }
207 209
208 } // namespace content 210 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698