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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 226 |
227 // Response to ServiceWorkerMsg_GetClientInfo. | 227 // Response to ServiceWorkerMsg_GetClientInfo. |
228 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClientInfoSuccess, | 228 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClientInfoSuccess, |
229 int /* request_id */, | 229 int /* request_id */, |
230 content::ServiceWorkerClientInfo) | 230 content::ServiceWorkerClientInfo) |
231 | 231 |
232 // Response to ServiceWorkerMsg_GetClientInfo. | 232 // Response to ServiceWorkerMsg_GetClientInfo. |
233 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError, | 233 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError, |
234 int /* request_id */) | 234 int /* request_id */) |
235 | 235 |
| 236 // Asks the browser to force this worker to become activated. |
| 237 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, |
| 238 int /* request_id */) |
| 239 |
236 // CacheStorage operations in the browser. | 240 // CacheStorage operations in the browser. |
237 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, | 241 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, |
238 int /* request_id */, | 242 int /* request_id */, |
239 base::string16 /* fetch_store_name */) | 243 base::string16 /* fetch_store_name */) |
240 | 244 |
241 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, | 245 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, |
242 int /* request_id */, | 246 int /* request_id */, |
243 base::string16 /* fetch_store_name */) | 247 base::string16 /* fetch_store_name */) |
244 | 248 |
245 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, | 249 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 content::ServiceWorkerVersionAttributes) | 366 content::ServiceWorkerVersionAttributes) |
363 | 367 |
364 // Informs the child process that new ServiceWorker enters the installation | 368 // Informs the child process that new ServiceWorker enters the installation |
365 // phase. | 369 // phase. |
366 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_UpdateFound, | 370 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_UpdateFound, |
367 int /* thread_id */, | 371 int /* thread_id */, |
368 content::ServiceWorkerRegistrationObjectInfo) | 372 content::ServiceWorkerRegistrationObjectInfo) |
369 | 373 |
370 // Tells the child process to set the controller ServiceWorker for the given | 374 // Tells the child process to set the controller ServiceWorker for the given |
371 // provider. | 375 // provider. |
372 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetControllerServiceWorker, | 376 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker, |
373 int /* thread_id */, | 377 int /* thread_id */, |
374 int /* provider_id */, | 378 int /* provider_id */, |
375 content::ServiceWorkerObjectInfo) | 379 content::ServiceWorkerObjectInfo, |
| 380 bool /* should_notify_controllerchange */) |
376 | 381 |
377 // Sends a 'message' event to a client document (browser->renderer). | 382 // Sends a 'message' event to a client document (browser->renderer). |
378 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, | 383 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, |
379 int /* thread_id */, | 384 int /* thread_id */, |
380 int /* provider_id */, | 385 int /* provider_id */, |
381 base::string16 /* message */, | 386 base::string16 /* message */, |
382 std::vector<int> /* sent_message_port_ids */, | 387 std::vector<int> /* sent_message_port_ids */, |
383 std::vector<int> /* new_routing_ids */) | 388 std::vector<int> /* new_routing_ids */) |
384 | 389 |
385 // Sent to client documents to request document properties. | 390 // Sent to client documents to request document properties. |
(...skipping 23 matching lines...) Expand all Loading... |
409 std::string /* data */) | 414 std::string /* data */) |
410 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, | 415 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, |
411 int /* request_id */, | 416 int /* request_id */, |
412 blink::WebGeofencingEventType /* event_type */, | 417 blink::WebGeofencingEventType /* event_type */, |
413 std::string /* region_id */, | 418 std::string /* region_id */, |
414 blink::WebCircularGeofencingRegion /* region */) | 419 blink::WebCircularGeofencingRegion /* region */) |
415 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, | 420 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, |
416 base::string16 /* message */, | 421 base::string16 /* message */, |
417 std::vector<int> /* sent_message_port_ids */, | 422 std::vector<int> /* sent_message_port_ids */, |
418 std::vector<int> /* new_routing_ids */) | 423 std::vector<int> /* new_routing_ids */) |
| 424 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, |
| 425 int /* request_id */) |
419 | 426 |
420 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 427 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
421 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 428 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
422 int /* request_id */, | 429 int /* request_id */, |
423 std::vector<content::ServiceWorkerClientInfo>) | 430 std::vector<content::ServiceWorkerClientInfo>) |
424 | 431 |
425 // Sent via EmbeddedWorker as a response of FocusClient. | 432 // Sent via EmbeddedWorker as a response of FocusClient. |
426 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 433 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
427 int /* request_id */, | 434 int /* request_id */, |
428 bool /* result */) | 435 bool /* result */) |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 blink::WebServiceWorkerCacheError) | 486 blink::WebServiceWorkerCacheError) |
480 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 487 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
481 int /* request_id */, | 488 int /* request_id */, |
482 blink::WebServiceWorkerCacheError) | 489 blink::WebServiceWorkerCacheError) |
483 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 490 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
484 int /* request_id */, | 491 int /* request_id */, |
485 blink::WebServiceWorkerCacheError) | 492 blink::WebServiceWorkerCacheError) |
486 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 493 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
487 int /* request_id */, | 494 int /* request_id */, |
488 blink::WebServiceWorkerCacheError) | 495 blink::WebServiceWorkerCacheError) |
OLD | NEW |