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

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

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: 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 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
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/navigation_params.h" 13 #include "content/common/navigation_params.h"
14 #include "content/common/resource_request_body.h" 14 #include "content/common/resource_request_body.h"
15 #include "content/common/service_worker/service_worker_types.h" 15 #include "content/common/service_worker/service_worker_types.h"
16 #include "content/public/common/appcache_info.h" 16 #include "content/public/common/appcache_info.h"
17 #include "content/public/common/request_context_frame_type.h" 17 #include "content/public/common/request_context_frame_type.h"
18 #include "content/public/common/request_context_type.h" 18 #include "content/public/common/request_context_type.h"
19 #include "content/public/common/resource_type.h" 19 #include "content/public/common/resource_type.h"
20 #include "net/base/request_priority.h" 20 #include "net/base/request_priority.h"
21 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
21 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 22 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 23 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
23 #include "ui/base/page_transition_types.h" 24 #include "ui/base/page_transition_types.h"
24 #include "url/gurl.h" 25 #include "url/gurl.h"
25 #include "url/origin.h" 26 #include "url/origin.h"
26 27
27 namespace content { 28 namespace content {
28 29
29 struct CONTENT_EXPORT ResourceRequest { 30 struct CONTENT_EXPORT ResourceRequest {
30 ResourceRequest(); 31 ResourceRequest();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 bool report_raw_headers = false; 164 bool report_raw_headers = false;
164 165
165 // Whether or not to request a LoFi version of the resource or let the browser 166 // Whether or not to request a LoFi version of the resource or let the browser
166 // decide. 167 // decide.
167 LoFiState lofi_state = LOFI_UNSPECIFIED; 168 LoFiState lofi_state = LOFI_UNSPECIFIED;
168 169
169 // PlzNavigate: the stream url associated with a navigation. Used to get 170 // 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 171 // access to the body of the response that has already been fetched by the
171 // browser. 172 // browser.
172 GURL resource_body_stream_url; 173 GURL resource_body_stream_url;
174
175 // The insecure request policy of the context which triggered this request.
176 blink::WebInsecureRequestPolicy insecure_request_policy =
177 blink::kLeaveInsecureRequestsAlone;
173 }; 178 };
174 179
175 } // namespace content 180 } // namespace content
176 181
177 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ 182 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698