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

Side by Side Diff: content/common/resource_messages.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, 4 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
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | net/cookies/canonical_cookie.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // The requested URL. 150 // The requested URL.
151 IPC_STRUCT_MEMBER(GURL, url) 151 IPC_STRUCT_MEMBER(GURL, url)
152 152
153 // Usually the URL of the document in the top-level window, which may be 153 // Usually the URL of the document in the top-level window, which may be
154 // checked by the third-party cookie blocking policy. Leaving it empty may 154 // checked by the third-party cookie blocking policy. Leaving it empty may
155 // lead to undesired cookie blocking. Third-party cookie blocking can be 155 // lead to undesired cookie blocking. Third-party cookie blocking can be
156 // bypassed by setting first_party_for_cookies = url, but this should ideally 156 // bypassed by setting first_party_for_cookies = url, but this should ideally
157 // only be done if there really is no way to determine the correct value. 157 // only be done if there really is no way to determine the correct value.
158 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) 158 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies)
159 159
160 // The origin responsible for making the request; used for First-Party-Only
161 // cookie policy enforcement.
162 IPC_STRUCT_MEMBER(url::Origin, requestor_origin)
163
160 // The referrer to use (may be empty). 164 // The referrer to use (may be empty).
161 IPC_STRUCT_MEMBER(GURL, referrer) 165 IPC_STRUCT_MEMBER(GURL, referrer)
162 166
163 // The referrer policy to use. 167 // The referrer policy to use.
164 IPC_STRUCT_MEMBER(blink::WebReferrerPolicy, referrer_policy) 168 IPC_STRUCT_MEMBER(blink::WebReferrerPolicy, referrer_policy)
165 169
166 // The frame's visiblity state. 170 // The frame's visiblity state.
167 IPC_STRUCT_MEMBER(blink::WebPageVisibilityState, visiblity_state) 171 IPC_STRUCT_MEMBER(blink::WebPageVisibilityState, visiblity_state)
168 172
169 // Additional HTTP request headers. 173 // Additional HTTP request headers.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 392
389 // Sent when the renderer process deletes a resource loader. 393 // Sent when the renderer process deletes a resource loader.
390 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 394 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
391 int /* request_id */) 395 int /* request_id */)
392 396
393 // Sent by the renderer when a resource request changes priority. 397 // Sent by the renderer when a resource request changes priority.
394 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 398 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
395 int /* request_id */, 399 int /* request_id */,
396 net::RequestPriority, 400 net::RequestPriority,
397 int /* intra_priority_value */) 401 int /* intra_priority_value */)
OLDNEW
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | net/cookies/canonical_cookie.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698