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

Unified Diff: content/browser/frame_host/navigation_request_info.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/browser/frame_host/navigation_request_info.h
diff --git a/content/browser/frame_host/navigation_request_info.h b/content/browser/frame_host/navigation_request_info.h
index 55ac9b0159cf200e1f6d0d88c6501b8c5c0a9e21..ef677db499e08d5799bbe58ebf996d8a7e3033b8 100644
--- a/content/browser/frame_host/navigation_request_info.h
+++ b/content/browser/frame_host/navigation_request_info.h
@@ -13,6 +13,7 @@
#include "content/common/resource_request_body.h"
#include "content/public/common/referrer.h"
#include "url/gurl.h"
+#include "url/origin.h"
namespace content {
class ResourceRequestBody;
@@ -24,6 +25,7 @@ struct CONTENT_EXPORT NavigationRequestInfo {
NavigationRequestInfo(const CommonNavigationParams& common_params,
const BeginNavigationParams& begin_params,
const GURL& first_party_for_cookies,
+ const url::Origin& request_initiator,
bool is_main_frame,
bool parent_is_main_frame,
int frame_tree_node_id,
@@ -37,6 +39,9 @@ struct CONTENT_EXPORT NavigationRequestInfo {
// checked by the third-party cookie blocking policy.
const GURL first_party_for_cookies;
+ // The origin of the context which initiated the request.
+ const url::Origin request_initiator;
+
const bool is_main_frame;
const bool parent_is_main_frame;

Powered by Google App Engine
This is Rietveld 408576698