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