OLD | NEW |
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 <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // ServiceWorker. | 197 // ServiceWorker. |
198 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, | 198 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, |
199 int /* request_id */) | 199 int /* request_id */) |
200 | 200 |
201 // Sends a 'message' event to a client document (renderer->browser). | 201 // Sends a 'message' event to a client document (renderer->browser). |
202 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 202 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
203 int /* client_id */, | 203 int /* client_id */, |
204 base::string16 /* message */, | 204 base::string16 /* message */, |
205 std::vector<int> /* sent_message_port_ids */) | 205 std::vector<int> /* sent_message_port_ids */) |
206 | 206 |
| 207 // Asks the browser to force this worker to become activated. |
| 208 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, |
| 209 int /* request_id */) |
| 210 |
207 // CacheStorage operations in the browser. | 211 // CacheStorage operations in the browser. |
208 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, | 212 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, |
209 int /* request_id */, | 213 int /* request_id */, |
210 base::string16 /* fetch_store_name */) | 214 base::string16 /* fetch_store_name */) |
211 | 215 |
212 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, | 216 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, |
213 int /* request_id */, | 217 int /* request_id */, |
214 base::string16 /* fetch_store_name */) | 218 base::string16 /* fetch_store_name */) |
215 | 219 |
216 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, | 220 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 content::ServiceWorkerVersionAttributes) | 332 content::ServiceWorkerVersionAttributes) |
329 | 333 |
330 // Informs the child process that new ServiceWorker enters the installation | 334 // Informs the child process that new ServiceWorker enters the installation |
331 // phase. | 335 // phase. |
332 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_UpdateFound, | 336 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_UpdateFound, |
333 int /* thread_id */, | 337 int /* thread_id */, |
334 content::ServiceWorkerRegistrationObjectInfo) | 338 content::ServiceWorkerRegistrationObjectInfo) |
335 | 339 |
336 // Tells the child process to set the controller ServiceWorker for the given | 340 // Tells the child process to set the controller ServiceWorker for the given |
337 // provider. | 341 // provider. |
338 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetControllerServiceWorker, | 342 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker, |
339 int /* thread_id */, | 343 int /* thread_id */, |
340 int /* provider_id */, | 344 int /* provider_id */, |
341 content::ServiceWorkerObjectInfo) | 345 content::ServiceWorkerObjectInfo, |
| 346 bool /* should_notify_controllerchange */) |
342 | 347 |
343 // Sends a 'message' event to a client document (browser->renderer). | 348 // Sends a 'message' event to a client document (browser->renderer). |
344 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, | 349 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, |
345 int /* thread_id */, | 350 int /* thread_id */, |
346 int /* provider_id */, | 351 int /* provider_id */, |
347 base::string16 /* message */, | 352 base::string16 /* message */, |
348 std::vector<int> /* sent_message_port_ids */, | 353 std::vector<int> /* sent_message_port_ids */, |
349 std::vector<int> /* new_routing_ids */) | 354 std::vector<int> /* new_routing_ids */) |
350 | 355 |
351 // Sent via EmbeddedWorker to dispatch events. | 356 // Sent via EmbeddedWorker to dispatch events. |
(...skipping 12 matching lines...) Expand all Loading... |
364 std::string /* data */) | 369 std::string /* data */) |
365 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, | 370 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, |
366 int /* request_id */, | 371 int /* request_id */, |
367 blink::WebGeofencingEventType /* event_type */, | 372 blink::WebGeofencingEventType /* event_type */, |
368 std::string /* region_id */, | 373 std::string /* region_id */, |
369 blink::WebCircularGeofencingRegion /* region */) | 374 blink::WebCircularGeofencingRegion /* region */) |
370 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, | 375 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, |
371 base::string16 /* message */, | 376 base::string16 /* message */, |
372 std::vector<int> /* sent_message_port_ids */, | 377 std::vector<int> /* sent_message_port_ids */, |
373 std::vector<int> /* new_routing_ids */) | 378 std::vector<int> /* new_routing_ids */) |
| 379 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, |
| 380 int /* request_id */) |
374 | 381 |
375 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 382 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
376 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 383 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
377 int /* request_id */, | 384 int /* request_id */, |
378 std::vector<int> /* client_ids */) | 385 std::vector<int> /* client_ids */) |
379 | 386 |
380 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. | 387 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. |
381 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, | 388 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, |
382 int /* request_id */) | 389 int /* request_id */) |
383 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, | 390 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 blink::WebServiceWorkerCacheError) | 430 blink::WebServiceWorkerCacheError) |
424 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 431 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
425 int /* request_id */, | 432 int /* request_id */, |
426 blink::WebServiceWorkerCacheError) | 433 blink::WebServiceWorkerCacheError) |
427 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 434 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
428 int /* request_id */, | 435 int /* request_id */, |
429 blink::WebServiceWorkerCacheError) | 436 blink::WebServiceWorkerCacheError) |
430 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 437 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
431 int /* request_id */, | 438 int /* request_id */, |
432 blink::WebServiceWorkerCacheError) | 439 blink::WebServiceWorkerCacheError) |
OLD | NEW |