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

Unified Diff: content/child/request_info.h

Issue 1253353004: WIP: Teach "First-Party-Only" cookies about the requestor origin. Base URL: https://chromium.googlesource.com/chromium/src.git@cookie-options
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | content/child/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/request_info.h
diff --git a/content/child/request_info.h b/content/child/request_info.h
index feb34375fab8993baca32862cc165b6d996dc1b5..80f8a09f061fa275cc85619976f89f5b9b2e3694 100644
--- a/content/child/request_info.h
+++ b/content/child/request_info.h
@@ -19,6 +19,7 @@
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "url/gurl.h"
+#include "url/origin.h"
namespace content {
@@ -37,6 +38,10 @@ struct CONTENT_EXPORT RequestInfo {
// third-party cookie blocking policy.
GURL first_party_for_cookies;
+ // The origin responsible for the request, which will be checked by the
+ // first-party-only cookie policy.
+ url::Origin requestor_origin;
+
// Optional parameter, the referrer to use for the request for the url member.
Referrer referrer;
« no previous file with comments | « no previous file | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698