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

Side by Side Diff: content/child/request_info.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 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 #ifndef CONTENT_CHILD_REQUEST_INFO_H_ 5 #ifndef CONTENT_CHILD_REQUEST_INFO_H_
6 #define CONTENT_CHILD_REQUEST_INFO_H_ 6 #define CONTENT_CHILD_REQUEST_INFO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.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/referrer.h" 16 #include "content/public/common/referrer.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/WebReferrerPolicy.h" 22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
22 #include "third_party/WebKit/public/platform/WebTaskRunner.h" 23 #include "third_party/WebKit/public/platform/WebTaskRunner.h"
23 #include "third_party/WebKit/public/platform/WebURLRequest.h" 24 #include "third_party/WebKit/public/platform/WebURLRequest.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 blink { 28 namespace blink {
28 class WebTaskRunner; 29 class WebTaskRunner;
29 } // namespace blink 30 } // namespace blink
30 31
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Extra data associated with this request. We do not own this pointer. 122 // Extra data associated with this request. We do not own this pointer.
122 blink::WebURLRequest::ExtraData* extra_data; 123 blink::WebURLRequest::ExtraData* extra_data;
123 124
124 // Optional, the specific task queue to execute loading tasks on. 125 // Optional, the specific task queue to execute loading tasks on.
125 std::unique_ptr<blink::WebTaskRunner> loading_web_task_runner; 126 std::unique_ptr<blink::WebTaskRunner> loading_web_task_runner;
126 127
127 // PlzNavigate: the stream URL to request during navigations to get access to 128 // PlzNavigate: the stream URL to request during navigations to get access to
128 // the ResourceBody that has already been fetched by the browser process. 129 // the ResourceBody that has already been fetched by the browser process.
129 GURL resource_body_stream_url; 130 GURL resource_body_stream_url;
130 131
132 blink::WebInsecureRequestPolicy insecure_request_policy;
133
131 private: 134 private:
132 DISALLOW_COPY_AND_ASSIGN(RequestInfo); 135 DISALLOW_COPY_AND_ASSIGN(RequestInfo);
133 }; 136 };
134 137
135 } // namespace content 138 } // namespace content
136 139
137 #endif // CONTENT_CHILD_REQUEST_INFO_H_ 140 #endif // CONTENT_CHILD_REQUEST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698