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

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: fix GetFetchCredentialsMode 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Indicates which frame (or worker context) the request is being loaded into, 194 // Indicates which frame (or worker context) the request is being loaded into,
192 // or kInvalidServiceWorkerProviderId. 195 // or kInvalidServiceWorkerProviderId.
193 IPC_STRUCT_MEMBER(int, service_worker_provider_id) 196 IPC_STRUCT_MEMBER(int, service_worker_provider_id)
194 197
195 // True if the request should not be handled by the ServiceWorker. 198 // True if the request should not be handled by the ServiceWorker.
196 IPC_STRUCT_MEMBER(bool, skip_service_worker) 199 IPC_STRUCT_MEMBER(bool, skip_service_worker)
197 200
198 // The request mode passed to the ServiceWorker. 201 // The request mode passed to the ServiceWorker.
199 IPC_STRUCT_MEMBER(content::FetchRequestMode, fetch_request_mode) 202 IPC_STRUCT_MEMBER(content::FetchRequestMode, fetch_request_mode)
200 203
204 // The credentials mode passed to the ServiceWorker.
205 IPC_STRUCT_MEMBER(content::FetchCredentialsMode, fetch_credentials_mode)
yhirano 2014/10/01 06:41:12 The mode value is not set in resource_dispatcher.c
horo 2014/10/01 06:57:34 Done.
206
201 // Optional resource request body (may be null). 207 // Optional resource request body (may be null).
202 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, 208 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>,
203 request_body) 209 request_body)
204 210
205 IPC_STRUCT_MEMBER(bool, download_to_file) 211 IPC_STRUCT_MEMBER(bool, download_to_file)
206 212
207 // True if the request was user initiated. 213 // True if the request was user initiated.
208 IPC_STRUCT_MEMBER(bool, has_user_gesture) 214 IPC_STRUCT_MEMBER(bool, has_user_gesture)
209 215
210 // True if load timing data should be collected for request. 216 // True if load timing data should be collected for request.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 371
366 // Sent when the renderer process deletes a resource loader. 372 // Sent when the renderer process deletes a resource loader.
367 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 373 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
368 int /* request_id */) 374 int /* request_id */)
369 375
370 // Sent by the renderer when a resource request changes priority. 376 // Sent by the renderer when a resource request changes priority.
371 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 377 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
372 int /* request_id */, 378 int /* request_id */,
373 net::RequestPriority, 379 net::RequestPriority,
374 int /* intra_priority_value */) 380 int /* intra_priority_value */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698