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

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: Rebase. 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 918afc179f4a42221f4aa96e87dfc34666ddc663..538337a3df05b7ac15c4503a5f3d405692bc26d3 100644
--- a/content/common/resource_messages.h
+++ b/content/common/resource_messages.h
@@ -171,6 +171,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