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

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

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.h
diff --git a/content/browser/loader/resource_request_info_impl.h b/content/browser/loader/resource_request_info_impl.h
index 1c7083bb40798dd417a635281d4e43a01e3fdf84..635d13bdc83551a3185030b89afc5dcd6f1b059e 100644
--- a/content/browser/loader/resource_request_info_impl.h
+++ b/content/browser/loader/resource_request_info_impl.h
@@ -68,7 +68,8 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
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);
~ResourceRequestInfoImpl() override;
// ResourceRequestInfo implementation:
@@ -189,6 +190,13 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
const scoped_refptr<ResourceRequestBodyImpl>& body() const { return body_; }
void ResetBody();
+ bool initiated_in_secure_context() const {
+ return initiated_in_secure_context_;
+ }
+ void set_initiated_in_secure_context_for_testing(bool secure) {
+ initiated_in_secure_context_ = secure;
+ }
+
private:
FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
DeletedFilterDetached);
@@ -231,6 +239,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
bool is_using_lofi_;
const std::string original_headers_;
scoped_refptr<ResourceRequestBodyImpl> body_;
+ bool initiated_in_secure_context_;
DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
};
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.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