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

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

Issue 1914593002: Limit requests for which link headers can install service workers to secure contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_request_info_impl.cc
diff --git a/content/browser/loader/resource_request_info_impl.cc b/content/browser/loader/resource_request_info_impl.cc
index f3f77892b2d19a542db039cd5a6ba5c24eb8aa75..a0e508bc6695b579d120e17b450f2c64ef1e2b11 100644
--- a/content/browser/loader/resource_request_info_impl.cc
+++ b/content/browser/loader/resource_request_info_impl.cc
@@ -89,7 +89,8 @@ void ResourceRequestInfo::AllocateForTesting(net::URLRequest* request,
is_async, // is_async
is_using_lofi, // is_using_lofi
std::string(), // original_headers
- nullptr); // body
+ nullptr, // body
+ false); // initiated_in_secure_context
info->AssociateWithRequest(request);
}
@@ -157,7 +158,8 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
bool is_async,
bool is_using_lofi,
const std::string& original_headers,
- const scoped_refptr<ResourceRequestBodyImpl> body)
+ const scoped_refptr<ResourceRequestBodyImpl> body,
+ bool initiated_in_secure_context)
: cross_site_handler_(NULL),
detachable_handler_(NULL),
process_type_(process_type),
@@ -190,7 +192,8 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
is_async_(is_async),
is_using_lofi_(is_using_lofi),
original_headers_(original_headers),
- body_(body) {}
+ body_(body),
+ initiated_in_secure_context_(initiated_in_secure_context) {}
ResourceRequestInfoImpl::~ResourceRequestInfoImpl() {
}
« no previous file with comments | « content/browser/loader/resource_request_info_impl.h ('k') | content/browser/service_worker/link_header_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698