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

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

Issue 623663002: [ServiceWorker] pipe RequestContext and FrameType to ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: request_info.cc 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 // True if the request should not be handled by the ServiceWorker. 199 // True if the request should not be handled by the ServiceWorker.
200 IPC_STRUCT_MEMBER(bool, skip_service_worker) 200 IPC_STRUCT_MEMBER(bool, skip_service_worker)
201 201
202 // The request mode passed to the ServiceWorker. 202 // The request mode passed to the ServiceWorker.
203 IPC_STRUCT_MEMBER(content::FetchRequestMode, fetch_request_mode) 203 IPC_STRUCT_MEMBER(content::FetchRequestMode, fetch_request_mode)
204 204
205 // The credentials mode passed to the ServiceWorker. 205 // The credentials mode passed to the ServiceWorker.
206 IPC_STRUCT_MEMBER(content::FetchCredentialsMode, fetch_credentials_mode) 206 IPC_STRUCT_MEMBER(content::FetchCredentialsMode, fetch_credentials_mode)
207 207
208 // The request context passed to the ServiceWorker.
209 IPC_STRUCT_MEMBER(content::RequestContextType, fetch_request_context_type)
210
211 // The frame type passed to the ServiceWorker.
212 IPC_STRUCT_MEMBER(content::RequestContextFrameType, fetch_frame_type)
213
208 // Optional resource request body (may be null). 214 // Optional resource request body (may be null).
209 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, 215 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>,
210 request_body) 216 request_body)
211 217
212 IPC_STRUCT_MEMBER(bool, download_to_file) 218 IPC_STRUCT_MEMBER(bool, download_to_file)
213 219
214 // True if the request was user initiated. 220 // True if the request was user initiated.
215 IPC_STRUCT_MEMBER(bool, has_user_gesture) 221 IPC_STRUCT_MEMBER(bool, has_user_gesture)
216 222
217 // True if load timing data should be collected for request. 223 // True if load timing data should be collected for request.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 378
373 // Sent when the renderer process deletes a resource loader. 379 // Sent when the renderer process deletes a resource loader.
374 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 380 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
375 int /* request_id */) 381 int /* request_id */)
376 382
377 // Sent by the renderer when a resource request changes priority. 383 // Sent by the renderer when a resource request changes priority.
378 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 384 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
379 int /* request_id */, 385 int /* request_id */,
380 net::RequestPriority, 386 net::RequestPriority,
381 int /* intra_priority_value */) 387 int /* intra_priority_value */)
OLDNEW
« no previous file with comments | « content/common/content_param_traits_macros.h ('k') | content/common/service_worker/service_worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698