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

Side by Side Diff: content/common/resource_request.h

Issue 2032653003: Limit foreign fetch to only intercept requests made from secure contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: properly initialize new ResourceRequest member 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
« no previous file with comments | « content/common/resource_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_H_ 5 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_H_
6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ 6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 bool report_raw_headers = false; 163 bool report_raw_headers = false;
164 164
165 // Whether or not to request a LoFi version of the resource or let the browser 165 // Whether or not to request a LoFi version of the resource or let the browser
166 // decide. 166 // decide.
167 LoFiState lofi_state = LOFI_UNSPECIFIED; 167 LoFiState lofi_state = LOFI_UNSPECIFIED;
168 168
169 // PlzNavigate: the stream url associated with a navigation. Used to get 169 // PlzNavigate: the stream url associated with a navigation. Used to get
170 // access to the body of the response that has already been fetched by the 170 // access to the body of the response that has already been fetched by the
171 // browser. 171 // browser.
172 GURL resource_body_stream_url; 172 GURL resource_body_stream_url;
173
174 // Wether or not the initiator of this request is a secure context.
175 bool initiated_in_secure_context = false;
173 }; 176 };
174 177
175 } // namespace content 178 } // namespace content
176 179
177 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ 180 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698