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

Side by Side Diff: content/common/resource_messages.h

Issue 615493003: [ServiceWorker] Plumbing the request credentials mode to the ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #undef IPC_MESSAGE_EXPORT 81 #undef IPC_MESSAGE_EXPORT
82 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 82 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
83 83
84 IPC_ENUM_TRAITS_MAX_VALUE( \ 84 IPC_ENUM_TRAITS_MAX_VALUE( \
85 net::HttpResponseInfo::ConnectionInfo, \ 85 net::HttpResponseInfo::ConnectionInfo, \
86 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1) 86 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1)
87 87
88 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRequestMode, 88 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRequestMode,
89 content::FETCH_REQUEST_MODE_LAST) 89 content::FETCH_REQUEST_MODE_LAST)
90 90
91 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchCredentialsMode,
92 content::FETCH_CREDENTIALS_MODE_LAST)
93
91 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) 94 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead)
92 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) 95 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo)
93 IPC_STRUCT_TRAITS_MEMBER(request_start) 96 IPC_STRUCT_TRAITS_MEMBER(request_start)
94 IPC_STRUCT_TRAITS_MEMBER(response_start) 97 IPC_STRUCT_TRAITS_MEMBER(response_start)
95 IPC_STRUCT_TRAITS_END() 98 IPC_STRUCT_TRAITS_END()
96 99
97 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) 100 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult)
98 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) 101 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead)
99 IPC_STRUCT_TRAITS_MEMBER(error_code) 102 IPC_STRUCT_TRAITS_MEMBER(error_code)
100 IPC_STRUCT_TRAITS_MEMBER(final_url) 103 IPC_STRUCT_TRAITS_MEMBER(final_url)
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Indicates which frame (or worker context) the request is being loaded into, 195 // Indicates which frame (or worker context) the request is being loaded into,
193 // or kInvalidServiceWorkerProviderId. 196 // or kInvalidServiceWorkerProviderId.
194 IPC_STRUCT_MEMBER(int, service_worker_provider_id) 197 IPC_STRUCT_MEMBER(int, service_worker_provider_id)
195 198
196 // True if the request should not be handled by the ServiceWorker. 199 // True if the request should not be handled by the ServiceWorker.
197 IPC_STRUCT_MEMBER(bool, skip_service_worker) 200 IPC_STRUCT_MEMBER(bool, skip_service_worker)
198 201
199 // The request mode passed to the ServiceWorker. 202 // The request mode passed to the ServiceWorker.
200 IPC_STRUCT_MEMBER(content::FetchRequestMode, fetch_request_mode) 203 IPC_STRUCT_MEMBER(content::FetchRequestMode, fetch_request_mode)
201 204
205 // The credentials mode passed to the ServiceWorker.
206 IPC_STRUCT_MEMBER(content::FetchCredentialsMode, fetch_credentials_mode)
207
202 // Optional resource request body (may be null). 208 // Optional resource request body (may be null).
203 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, 209 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>,
204 request_body) 210 request_body)
205 211
206 IPC_STRUCT_MEMBER(bool, download_to_file) 212 IPC_STRUCT_MEMBER(bool, download_to_file)
207 213
208 // True if the request was user initiated. 214 // True if the request was user initiated.
209 IPC_STRUCT_MEMBER(bool, has_user_gesture) 215 IPC_STRUCT_MEMBER(bool, has_user_gesture)
210 216
211 // True if load timing data should be collected for request. 217 // True if load timing data should be collected for request.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 372
367 // Sent when the renderer process deletes a resource loader. 373 // Sent when the renderer process deletes a resource loader.
368 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 374 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
369 int /* request_id */) 375 int /* request_id */)
370 376
371 // Sent by the renderer when a resource request changes priority. 377 // Sent by the renderer when a resource request changes priority.
372 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 378 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
373 int /* request_id */, 379 int /* request_id */,
374 net::RequestPriority, 380 net::RequestPriority,
375 int /* intra_priority_value */) 381 int /* intra_priority_value */)
OLDNEW
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/common/service_worker/service_worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698