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
3 // found in the LICENSE file.
5 // Message definition file, included multiple times, hence no include guard.
10 #include "base/strings/string16.h"
11 #include "content/common/service_worker/service_worker_client_info.h"
12 #include "content/common/service_worker/service_worker_status_code.h"
13 #include "content/common/service_worker/service_worker_types.h"
14 #include "content/public/common/message_port_types.h"
15 #include "content/public/common/navigator_connect_client.h"
16 #include "content/public/common/platform_notification_data.h"
17 #include "ipc/ipc_message_macros.h"
18 #include "ipc/ipc_param_traits.h"
19 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
20 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
21 #include "third_party/WebKit/public/platform/WebServiceWorkerCacheError.h"
22 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
23 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h"
26 #undef IPC_MESSAGE_EXPORT
27 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
29 #define IPC_MESSAGE_START ServiceWorkerMsgStart
31 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerError::ErrorType
,
32 blink::WebServiceWorkerError::ErrorTypeLast
)
34 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerEventResult
,
35 blink::WebServiceWorkerEventResultLast
)
37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerState
,
38 blink::WebServiceWorkerStateLast
)
40 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseType
,
41 blink::WebServiceWorkerResponseTypeLast
)
43 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType
,
44 content::SERVICE_WORKER_PROVIDER_TYPE_LAST
)
46 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest
)
47 IPC_STRUCT_TRAITS_MEMBER(mode
)
48 IPC_STRUCT_TRAITS_MEMBER(request_context_type
)
49 IPC_STRUCT_TRAITS_MEMBER(frame_type
)
50 IPC_STRUCT_TRAITS_MEMBER(url
)
51 IPC_STRUCT_TRAITS_MEMBER(method
)
52 IPC_STRUCT_TRAITS_MEMBER(headers
)
53 IPC_STRUCT_TRAITS_MEMBER(blob_uuid
)
54 IPC_STRUCT_TRAITS_MEMBER(blob_size
)
55 IPC_STRUCT_TRAITS_MEMBER(referrer
)
56 IPC_STRUCT_TRAITS_MEMBER(credentials_mode
)
57 IPC_STRUCT_TRAITS_MEMBER(is_reload
)
58 IPC_STRUCT_TRAITS_END()
60 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchEventResult
,
61 content::SERVICE_WORKER_FETCH_EVENT_LAST
)
63 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse
)
64 IPC_STRUCT_TRAITS_MEMBER(url
)
65 IPC_STRUCT_TRAITS_MEMBER(status_code
)
66 IPC_STRUCT_TRAITS_MEMBER(status_text
)
67 IPC_STRUCT_TRAITS_MEMBER(response_type
)
68 IPC_STRUCT_TRAITS_MEMBER(headers
)
69 IPC_STRUCT_TRAITS_MEMBER(blob_uuid
)
70 IPC_STRUCT_TRAITS_MEMBER(blob_size
)
71 IPC_STRUCT_TRAITS_MEMBER(stream_url
)
72 IPC_STRUCT_TRAITS_END()
74 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerCacheQueryParams
)
75 IPC_STRUCT_TRAITS_MEMBER(ignore_search
)
76 IPC_STRUCT_TRAITS_MEMBER(ignore_method
)
77 IPC_STRUCT_TRAITS_MEMBER(ignore_vary
)
78 IPC_STRUCT_TRAITS_MEMBER(cache_name
)
79 IPC_STRUCT_TRAITS_END()
81 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerCacheOperationType
,
82 content::SERVICE_WORKER_CACHE_OPERATION_TYPE_LAST
)
84 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerBatchOperation
)
85 IPC_STRUCT_TRAITS_MEMBER(operation_type
)
86 IPC_STRUCT_TRAITS_MEMBER(request
)
87 IPC_STRUCT_TRAITS_MEMBER(response
)
88 IPC_STRUCT_TRAITS_MEMBER(match_params
)
89 IPC_STRUCT_TRAITS_END()
91 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo
)
92 IPC_STRUCT_TRAITS_MEMBER(handle_id
)
93 IPC_STRUCT_TRAITS_MEMBER(url
)
94 IPC_STRUCT_TRAITS_MEMBER(state
)
95 IPC_STRUCT_TRAITS_MEMBER(version_id
)
96 IPC_STRUCT_TRAITS_END()
98 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationObjectInfo
)
99 IPC_STRUCT_TRAITS_MEMBER(handle_id
)
100 IPC_STRUCT_TRAITS_MEMBER(scope
)
101 IPC_STRUCT_TRAITS_MEMBER(registration_id
)
102 IPC_STRUCT_TRAITS_END()
104 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes
)
105 IPC_STRUCT_TRAITS_MEMBER(installing
)
106 IPC_STRUCT_TRAITS_MEMBER(waiting
)
107 IPC_STRUCT_TRAITS_MEMBER(active
)
108 IPC_STRUCT_TRAITS_END()
110 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo
)
111 IPC_STRUCT_TRAITS_MEMBER(client_id
)
112 IPC_STRUCT_TRAITS_MEMBER(page_visibility_state
)
113 IPC_STRUCT_TRAITS_MEMBER(is_focused
)
114 IPC_STRUCT_TRAITS_MEMBER(url
)
115 IPC_STRUCT_TRAITS_MEMBER(frame_type
)
116 IPC_STRUCT_TRAITS_END()
118 IPC_ENUM_TRAITS_MAX_VALUE(
119 blink::WebServiceWorkerCacheError
,
120 blink::WebServiceWorkerCacheErrorLast
)
122 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType
,
123 blink::WebGeofencingEventTypeLast
)
125 //---------------------------------------------------------------------------
126 // Messages sent from the child process to the browser.
128 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker
,
130 int /* request_id */,
131 int /* provider_id */,
133 GURL
/* script_url */)
135 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker
,
137 int /* request_id */,
138 int /* provider_id */,
139 GURL
/* scope (url pattern) */)
141 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration
,
143 int /* request_id */,
144 int /* provider_id */,
145 GURL
/* document_url */)
147 // Sends a 'message' event to a service worker (renderer->browser).
148 IPC_MESSAGE_CONTROL3(
149 ServiceWorkerHostMsg_PostMessageToWorker
,
151 base::string16
/* message */,
152 std::vector
<content::TransferredMessagePort
> /* sent_message_ports */)
154 // Informs the browser of a new ServiceWorkerProvider in the child process,
155 // |provider_id| is unique within its child process.
156 // |render_frame_id| identifies the frame associated with the provider, it will
157 // it will be MSG_ROUTING_NONE if the context is a worker instead of a document.
158 // |provider_type| identifies whether this provider is for ServiceWorker
159 // controllees (documents and SharedWorkers) or for controllers
161 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated
,
162 int /* provider_id */,
163 int /* render_frame_id */,
164 content::ServiceWorkerProviderType
/* provider_type */)
166 // Informs the browser of a ServiceWorkerProvider being destroyed.
167 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed
,
168 int /* provider_id */)
170 // Increments and decrements the ServiceWorker object's reference
171 // counting in the browser side. The ServiceWorker object is created
172 // with ref-count==1 initially.
173 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount
,
175 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementServiceWorkerRefCount
,
178 // Increments and decrements the ServiceWorkerRegistration object's reference
179 // counting in the browser side. The registration object is created with
180 // ref-count==1 initially.
181 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementRegistrationRefCount
,
182 int /* registration_handle_id */)
183 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementRegistrationRefCount
,
184 int /* registration_handle_id */)
186 // Tells the browser to terminate a service worker. Used in layout tests to
187 // verify behavior when a service worker isn't running.
188 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_TerminateWorker
,
191 // Informs the browser that |provider_id| is associated
192 // with a service worker script running context and
193 // |version_id| identifies which ServiceWorkerVersion.
194 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId
,
195 int /* provider_id */,
196 int64
/* version_id */)
198 // Informs the browser that event handling has finished.
199 // Routed to the target ServiceWorkerVersion.
200 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_InstallEventFinished
,
201 int /* request_id */,
202 blink::WebServiceWorkerEventResult
)
203 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_ActivateEventFinished
,
204 int /* request_id */,
205 blink::WebServiceWorkerEventResult
)
206 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventFinished
,
207 int /* request_id */,
208 content::ServiceWorkerFetchEventResult
,
209 content::ServiceWorkerResponse
)
210 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SyncEventFinished
,
211 int /* request_id */)
212 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_NotificationClickEventFinished
,
213 int /* request_id */)
214 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished
,
215 int /* request_id */,
216 blink::WebServiceWorkerEventResult
)
217 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished
,
218 int /* request_id */)
219 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished
,
220 int /* request_id */,
221 bool /* accept_connection */)
223 // Responds to a Ping from the browser.
224 // Routed to the target ServiceWorkerVersion.
225 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong
)
227 // Asks the browser to retrieve documents controlled by the sender
229 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments
,
230 int /* request_id */)
232 // Sends a 'message' event to a client document (renderer->browser).
234 ServiceWorkerHostMsg_PostMessageToDocument
,
236 base::string16
/* message */,
237 std::vector
<content::TransferredMessagePort
> /* sent_message_ports */)
239 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage
240 // cache |data| associated with |url|.
241 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_SetCachedMetadata
,
243 std::vector
<char> /* data */)
245 // ServiceWorker -> Browser message to request that the ServiceWorkerStorage
246 // clear the cache associated with |url|.
247 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClearCachedMetadata
, GURL
/* url */)
249 // Ask the browser to open a tab/window (renderer->browser).
250 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow
,
251 int /* request_id */,
254 // Ask the browser to focus a client (renderer->browser).
255 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient
,
256 int /* request_id */,
259 // Asks the browser to force this worker to become activated.
260 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting
,
261 int /* request_id */)
263 // Asks the browser to have this worker take control of pages that match
265 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients
,
266 int /* request_id */)
268 // CacheStorage operations in the browser.
269 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas
,
270 int /* request_id */,
271 base::string16
/* fetch_store_name */)
273 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen
,
274 int /* request_id */,
275 base::string16
/* fetch_store_name */)
277 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete
,
278 int /* request_id */,
279 base::string16
/* fetch_store_name */)
281 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_CacheStorageKeys
,
282 int /* request_id */)
284 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_CacheStorageMatch
,
285 int /* request_id */,
286 content::ServiceWorkerFetchRequest
,
287 content::ServiceWorkerCacheQueryParams
)
289 // Cache operations in the browser.
290 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_CacheMatch
,
291 int /* request_id */,
293 content::ServiceWorkerFetchRequest
,
294 content::ServiceWorkerCacheQueryParams
)
296 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_CacheMatchAll
,
297 int /* request_id */,
299 content::ServiceWorkerFetchRequest
,
300 content::ServiceWorkerCacheQueryParams
)
302 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_CacheKeys
,
303 int /* request_id */,
305 content::ServiceWorkerFetchRequest
,
306 content::ServiceWorkerCacheQueryParams
)
308 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_CacheBatch
,
309 int /* request_id */,
311 std::vector
<content::ServiceWorkerBatchOperation
>)
313 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_CacheClosed
,
316 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_BlobDataHandled
,
317 std::string
/* uuid */)
319 //---------------------------------------------------------------------------
320 // Messages sent from the browser to the child process.
322 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have
323 // a thread_id as their first field so that ServiceWorkerMessageFilter can
324 // extract it and dispatch the message to the correct ServiceWorkerDispatcher
325 // on the correct thread.
327 // Informs the child process of the registration associated with the service
329 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_AssociateRegistrationWithServiceWorker
,
331 int /* provider_id */,
332 content::ServiceWorkerRegistrationObjectInfo
,
333 content::ServiceWorkerVersionAttributes
)
335 // Informs the child process that the given provider gets associated or
336 // disassociated with the registration.
337 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_AssociateRegistration
,
339 int /* provider_id */,
340 content::ServiceWorkerRegistrationObjectInfo
,
341 content::ServiceWorkerVersionAttributes
)
342 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DisassociateRegistration
,
344 int /* provider_id */)
346 // Response to ServiceWorkerHostMsg_RegisterServiceWorker.
347 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered
,
349 int /* request_id */,
350 content::ServiceWorkerRegistrationObjectInfo
,
351 content::ServiceWorkerVersionAttributes
)
353 // Response to ServiceWorkerHostMsg_UnregisterServiceWorker.
354 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerUnregistered
,
356 int /* request_id */,
357 bool /* is_success */)
359 // Response to ServiceWorkerHostMsg_GetRegistration.
360 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration
,
362 int /* request_id */,
363 content::ServiceWorkerRegistrationObjectInfo
,
364 content::ServiceWorkerVersionAttributes
)
366 // Sent when any kind of registration error occurs during a
367 // RegisterServiceWorker handler above.
368 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError
,
370 int /* request_id */,
371 blink::WebServiceWorkerError::ErrorType
/* code */,
372 base::string16
/* message */)
374 // Sent when any kind of registration error occurs during a
375 // UnregisterServiceWorker handler above.
376 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerUnregistrationError
,
378 int /* request_id */,
379 blink::WebServiceWorkerError::ErrorType
/* code */,
380 base::string16
/* message */)
382 // Sent when any kind of registration error occurs during a
383 // GetRegistration handler above.
384 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationError
,
386 int /* request_id */,
387 blink::WebServiceWorkerError::ErrorType
/* code */,
388 base::string16
/* message */)
390 // Informs the child process that the ServiceWorker's state has changed.
391 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged
,
394 blink::WebServiceWorkerState
)
396 // Tells the child process to set service workers for the given provider.
397 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes
,
399 int /* provider_id */,
400 int /* registration_handle_id */,
401 int /* changed_mask */,
402 content::ServiceWorkerVersionAttributes
)
404 // Informs the child process that new ServiceWorker enters the installation
406 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_UpdateFound
,
408 content::ServiceWorkerRegistrationObjectInfo
)
410 // Tells the child process to set the controller ServiceWorker for the given
412 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker
,
414 int /* provider_id */,
415 content::ServiceWorkerObjectInfo
,
416 bool /* should_notify_controllerchange */)
418 // Sends a 'message' event to a client document (browser->renderer).
419 IPC_MESSAGE_CONTROL5(
420 ServiceWorkerMsg_MessageToDocument
,
422 int /* provider_id */,
423 base::string16
/* message */,
424 std::vector
<content::TransferredMessagePort
> /* sent_message_ports */,
425 std::vector
<int> /* new_routing_ids */)
427 // Sent via EmbeddedWorker to dispatch events.
428 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent
,
429 int /* request_id */,
430 int /* active_version_id */)
431 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent
,
432 int /* request_id */)
433 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent
,
434 int /* request_id */,
435 content::ServiceWorkerFetchRequest
)
436 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent
,
437 int /* request_id */)
438 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationClickEvent
,
439 int /* request_id */,
440 std::string
/* notification_id */,
441 content::PlatformNotificationData
/* notification_data */)
442 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent
,
443 int /* request_id */,
444 std::string
/* data */)
445 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent
,
446 int /* request_id */,
447 blink::WebGeofencingEventType
/* event_type */,
448 std::string
/* region_id */,
449 blink::WebCircularGeofencingRegion
/* region */)
450 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CrossOriginConnectEvent
,
451 int /* request_id */,
452 content::NavigatorConnectClient
/* client */)
453 IPC_MESSAGE_CONTROL3(
454 ServiceWorkerMsg_MessageToWorker
,
455 base::string16
/* message */,
456 std::vector
<content::TransferredMessagePort
> /* sent_message_ports */,
457 std::vector
<int> /* new_routing_ids */)
458 IPC_MESSAGE_CONTROL4(
459 ServiceWorkerMsg_CrossOriginMessageToWorker
,
460 content::NavigatorConnectClient
/* client */,
461 base::string16
/* message */,
462 std::vector
<content::TransferredMessagePort
> /* sent_message_ports */,
463 std::vector
<int> /* new_routing_ids */)
464 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting
,
465 int /* request_id */)
466 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients
,
467 int /* request_id */)
468 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError
,
469 int /* request_id */,
470 blink::WebServiceWorkerError::ErrorType
/* code */,
471 base::string16
/* message */)
473 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response.
474 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping
)
476 // Sent via EmbeddedWorker as a response of GetClientDocuments.
477 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments
,
478 int /* request_id */,
479 std::vector
<content::ServiceWorkerClientInfo
>)
481 // Sent via EmbeddedWorker as a response of OpenWindow.
482 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse
,
483 int /* request_id */,
484 content::ServiceWorkerClientInfo
/* client */)
486 // Sent via EmbeddedWorker as an error response of OpenWindow.
487 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_OpenWindowError
,
488 int /* request_id */ )
490 // Sent via EmbeddedWorker as a response of FocusClient.
491 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse
,
492 int /* request_id */,
493 content::ServiceWorkerClientInfo
/* client */)
495 // Sent via EmbeddedWorker at successful completion of CacheStorage operations.
496 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess
,
497 int /* request_id */)
498 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess
,
499 int /* request_id */,
500 int /* fetch_store_id */)
501 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageDeleteSuccess
,
502 int /* request_id */)
503 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysSuccess
,
504 int /* request_id */,
505 std::vector
<base::string16
> /* keys */)
506 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageMatchSuccess
,
507 int /* request_id */,
508 content::ServiceWorkerResponse
)
510 // Sent via EmbeddedWorker at erroneous completion of CacheStorage operations.
511 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageHasError
,
512 int /* request_id */,
513 blink::WebServiceWorkerCacheError
/* reason */)
514 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenError
,
515 int /* request_id */,
516 blink::WebServiceWorkerCacheError
/* reason */)
517 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError
,
518 int /* request_id */,
519 blink::WebServiceWorkerCacheError
/* reason */)
520 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError
,
521 int /* request_id */,
522 blink::WebServiceWorkerCacheError
/* reason */)
523 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageMatchError
,
524 int /* request_id */,
525 blink::WebServiceWorkerCacheError
)
527 // Sent via EmbeddedWorker at successful completion of Cache operations.
528 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchSuccess
,
529 int /* request_id */,
530 content::ServiceWorkerResponse
)
531 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllSuccess
,
532 int /* request_id */,
533 std::vector
<content::ServiceWorkerResponse
>)
534 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysSuccess
,
535 int /* request_id */,
536 std::vector
<content::ServiceWorkerFetchRequest
>)
537 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchSuccess
,
538 int /* request_id */,
539 std::vector
<content::ServiceWorkerResponse
>)
541 // Sent via EmbeddedWorker at erroneous completion of CacheStorage operations.
542 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchError
,
543 int /* request_id */,
544 blink::WebServiceWorkerCacheError
)
545 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError
,
546 int /* request_id */,
547 blink::WebServiceWorkerCacheError
)
548 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError
,
549 int /* request_id */,
550 blink::WebServiceWorkerCacheError
)
551 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError
,
552 int /* request_id */,
553 blink::WebServiceWorkerCacheError
)