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

Unified Diff: content/common/resource_messages.h

Issue 1411813003: Teach URLRequest about initiator checks for First-Party-Only cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback. Created 4 years, 11 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/common/resource_messages.h
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h
index 44a4b0e932fc78bef07b1fbad54148a832b6c90f..44e4a611fc7ab0db8e768b68886997348938b372 100644
--- a/content/common/resource_messages.h
+++ b/content/common/resource_messages.h
@@ -166,6 +166,10 @@ IPC_STRUCT_BEGIN(ResourceHostMsg_Request)
// only be done if there really is no way to determine the correct value.
IPC_STRUCT_MEMBER(GURL, first_party_for_cookies)
+ // The origin of the context which initiated the request, which will be used
+ // for cookie checks like 'First-Party-Only'.
+ IPC_STRUCT_MEMBER(url::Origin, request_initiator)
+
// The referrer to use (may be empty).
IPC_STRUCT_MEMBER(GURL, referrer)

Powered by Google App Engine
This is Rietveld 408576698