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

Side by Side Diff: content/common/service_worker/service_worker_messages.h

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Make SWDataPipeReader::State private Created 3 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Message definition file, included multiple times, hence no include guard. 5 // Message definition file, included multiple times, hence no include guard.
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 content::SERVICE_WORKER_FETCH_EVENT_LAST) 85 content::SERVICE_WORKER_FETCH_EVENT_LAST)
86 86
87 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse) 87 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse)
88 IPC_STRUCT_TRAITS_MEMBER(url_list) 88 IPC_STRUCT_TRAITS_MEMBER(url_list)
89 IPC_STRUCT_TRAITS_MEMBER(status_code) 89 IPC_STRUCT_TRAITS_MEMBER(status_code)
90 IPC_STRUCT_TRAITS_MEMBER(status_text) 90 IPC_STRUCT_TRAITS_MEMBER(status_text)
91 IPC_STRUCT_TRAITS_MEMBER(response_type) 91 IPC_STRUCT_TRAITS_MEMBER(response_type)
92 IPC_STRUCT_TRAITS_MEMBER(headers) 92 IPC_STRUCT_TRAITS_MEMBER(headers)
93 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) 93 IPC_STRUCT_TRAITS_MEMBER(blob_uuid)
94 IPC_STRUCT_TRAITS_MEMBER(blob_size) 94 IPC_STRUCT_TRAITS_MEMBER(blob_size)
95 IPC_STRUCT_TRAITS_MEMBER(stream_url)
96 IPC_STRUCT_TRAITS_MEMBER(error) 95 IPC_STRUCT_TRAITS_MEMBER(error)
97 IPC_STRUCT_TRAITS_MEMBER(response_time) 96 IPC_STRUCT_TRAITS_MEMBER(response_time)
98 IPC_STRUCT_TRAITS_MEMBER(is_in_cache_storage) 97 IPC_STRUCT_TRAITS_MEMBER(is_in_cache_storage)
99 IPC_STRUCT_TRAITS_MEMBER(cache_storage_cache_name) 98 IPC_STRUCT_TRAITS_MEMBER(cache_storage_cache_name)
100 IPC_STRUCT_TRAITS_MEMBER(cors_exposed_header_names) 99 IPC_STRUCT_TRAITS_MEMBER(cors_exposed_header_names)
101 IPC_STRUCT_TRAITS_END() 100 IPC_STRUCT_TRAITS_END()
102 101
103 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) 102 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo)
104 IPC_STRUCT_TRAITS_MEMBER(handle_id) 103 IPC_STRUCT_TRAITS_MEMBER(handle_id)
105 IPC_STRUCT_TRAITS_MEMBER(url) 104 IPC_STRUCT_TRAITS_MEMBER(url)
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 int /* handle_id */) 237 int /* handle_id */)
239 238
240 // Informs the browser that event handling has finished. 239 // Informs the browser that event handling has finished.
241 // Routed to the target ServiceWorkerVersion. 240 // Routed to the target ServiceWorkerVersion.
242 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_InstallEventFinished, 241 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_InstallEventFinished,
243 int /* request_id */, 242 int /* request_id */,
244 blink::WebServiceWorkerEventResult, 243 blink::WebServiceWorkerEventResult,
245 bool /* has_fetch_event_handler */, 244 bool /* has_fetch_event_handler */,
246 base::Time /* dispatch_event_time */) 245 base::Time /* dispatch_event_time */)
247 246
248 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_FetchEventResponse, 247 // Returns the response as the result of fetch event. This is used only for blob
248 // to keep the IPC ordering. For stream, no body and fallback, mojo IPC is used.
falken 2017/04/18 05:05:33 The second sentence is difficult to parse :) "Moj
shimazu 2017/04/19 05:49:46 Done.
249 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventResponse,
249 int /* fetch_event_id */, 250 int /* fetch_event_id */,
250 content::ServiceWorkerFetchEventResult,
251 content::ServiceWorkerResponse, 251 content::ServiceWorkerResponse,
252 base::Time /* dispatch_event_time */) 252 base::Time /* dispatch_event_time */)
253 253
254 // Asks the browser to retrieve client of the sender ServiceWorker. 254 // Asks the browser to retrieve client of the sender ServiceWorker.
255 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient, 255 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient,
256 int /* request_id */, 256 int /* request_id */,
257 std::string /* client_uuid */) 257 std::string /* client_uuid */)
258 258
259 // Asks the browser to retrieve clients of the sender ServiceWorker. 259 // Asks the browser to retrieve clients of the sender ServiceWorker.
260 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, 260 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients,
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 513
514 // Sent via EmbeddedWorker as a response of NavigateClient. 514 // Sent via EmbeddedWorker as a response of NavigateClient.
515 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 515 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
516 int /* request_id */, 516 int /* request_id */,
517 content::ServiceWorkerClientInfo /* client */) 517 content::ServiceWorkerClientInfo /* client */)
518 518
519 // Sent via EmbeddedWorker as an error response of NavigateClient. 519 // Sent via EmbeddedWorker as an error response of NavigateClient.
520 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 520 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
521 int /* request_id */, 521 int /* request_id */,
522 GURL /* url */) 522 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698