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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for resource loading. 5 // IPC messages for resource loading.
6 // 6 //
7 // NOTE: All messages must send an |int request_id| as their first parameter. 7 // NOTE: All messages must send an |int request_id| as their first parameter.
8 8
9 // Multiply-included message file, hence no include guard. 9 // Multiply-included message file, hence no include guard.
10 10
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // The requested URL. 164 // The requested URL.
165 IPC_STRUCT_MEMBER(GURL, url) 165 IPC_STRUCT_MEMBER(GURL, url)
166 166
167 // Usually the URL of the document in the top-level window, which may be 167 // Usually the URL of the document in the top-level window, which may be
168 // checked by the third-party cookie blocking policy. Leaving it empty may 168 // checked by the third-party cookie blocking policy. Leaving it empty may
169 // lead to undesired cookie blocking. Third-party cookie blocking can be 169 // lead to undesired cookie blocking. Third-party cookie blocking can be
170 // bypassed by setting first_party_for_cookies = url, but this should ideally 170 // bypassed by setting first_party_for_cookies = url, but this should ideally
171 // only be done if there really is no way to determine the correct value. 171 // only be done if there really is no way to determine the correct value.
172 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) 172 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies)
173 173
174 // The origin of the context which initiated the request, which will be used
175 // for cookie checks like 'First-Party-Only'.
176 IPC_STRUCT_MEMBER(url::Origin, request_initiator)
177
174 // The referrer to use (may be empty). 178 // The referrer to use (may be empty).
175 IPC_STRUCT_MEMBER(GURL, referrer) 179 IPC_STRUCT_MEMBER(GURL, referrer)
176 180
177 // The referrer policy to use. 181 // The referrer policy to use.
178 IPC_STRUCT_MEMBER(blink::WebReferrerPolicy, referrer_policy) 182 IPC_STRUCT_MEMBER(blink::WebReferrerPolicy, referrer_policy)
179 183
180 // The frame's visiblity state. 184 // The frame's visiblity state.
181 IPC_STRUCT_MEMBER(blink::WebPageVisibilityState, visiblity_state) 185 IPC_STRUCT_MEMBER(blink::WebPageVisibilityState, visiblity_state)
182 186
183 // Additional HTTP request headers. 187 // Additional HTTP request headers.
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 437
434 // Sent when the renderer process deletes a resource loader. 438 // Sent when the renderer process deletes a resource loader.
435 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 439 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
436 int /* request_id */) 440 int /* request_id */)
437 441
438 // Sent by the renderer when a resource request changes priority. 442 // Sent by the renderer when a resource request changes priority.
439 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 443 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
440 int /* request_id */, 444 int /* request_id */,
441 net::RequestPriority, 445 net::RequestPriority,
442 int /* intra_priority_value */) 446 int /* intra_priority_value */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698