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

Unified Diff: content/browser/loader/resource_request_info_impl.h

Issue 2445993006: [WIP] Upgrade-insecure-request: upgrade insecurely-redirected requests.
Patch Set: bugfix Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_request_info_impl.h
diff --git a/content/browser/loader/resource_request_info_impl.h b/content/browser/loader/resource_request_info_impl.h
index c54cebb0a3ed61d96c65a7522daa62594acc159d..2e802d2a4a5e1e09622bf3e0486c6642317f762e 100644
--- a/content/browser/loader/resource_request_info_impl.h
+++ b/content/browser/loader/resource_request_info_impl.h
@@ -70,7 +70,8 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
bool is_using_lofi,
const std::string& original_headers,
const scoped_refptr<ResourceRequestBodyImpl> body,
- bool initiated_in_secure_context);
+ bool initiated_in_secure_context,
+ blink::WebInsecureRequestPolicy insecure_request_policy);
~ResourceRequestInfoImpl() override;
// ResourceRequestInfo implementation:
@@ -197,6 +198,10 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
navigation_ui_data_ = std::move(navigation_ui_data);
}
+ blink::WebInsecureRequestPolicy insecure_request_policy() const {
+ return insecure_request_policy_;
+ }
+
// PlzNavigate: used in navigations to store the ServiceWorkerContext, since
// the ResourceMessageFilter will be null in this case. All other requests
// should access the ServiceWorkerContext through the ResourceMessageFilter.
@@ -252,6 +257,8 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
bool initiated_in_secure_context_;
std::unique_ptr<NavigationUIData> navigation_ui_data_;
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
+ blink::WebInsecureRequestPolicy insecure_request_policy_;
+
DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
};
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_unittest.cc ('k') | content/browser/loader/resource_request_info_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698