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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 IPC_STRUCT_TRAITS_MEMBER(scope) | 96 IPC_STRUCT_TRAITS_MEMBER(scope) |
97 IPC_STRUCT_TRAITS_MEMBER(registration_id) | 97 IPC_STRUCT_TRAITS_MEMBER(registration_id) |
98 IPC_STRUCT_TRAITS_END() | 98 IPC_STRUCT_TRAITS_END() |
99 | 99 |
100 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) | 100 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) |
101 IPC_STRUCT_TRAITS_MEMBER(installing) | 101 IPC_STRUCT_TRAITS_MEMBER(installing) |
102 IPC_STRUCT_TRAITS_MEMBER(waiting) | 102 IPC_STRUCT_TRAITS_MEMBER(waiting) |
103 IPC_STRUCT_TRAITS_MEMBER(active) | 103 IPC_STRUCT_TRAITS_MEMBER(active) |
104 IPC_STRUCT_TRAITS_END() | 104 IPC_STRUCT_TRAITS_END() |
105 | 105 |
| 106 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) |
| 107 IPC_STRUCT_TRAITS_MEMBER(client_id) |
| 108 IPC_STRUCT_TRAITS_MEMBER(visibility_state) |
| 109 IPC_STRUCT_TRAITS_MEMBER(is_focused) |
| 110 IPC_STRUCT_TRAITS_MEMBER(url) |
| 111 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
| 112 IPC_STRUCT_TRAITS_END() |
| 113 |
106 IPC_ENUM_TRAITS_MAX_VALUE( | 114 IPC_ENUM_TRAITS_MAX_VALUE( |
107 blink::WebServiceWorkerCacheError, | 115 blink::WebServiceWorkerCacheError, |
108 blink::WebServiceWorkerCacheErrorLast) | 116 blink::WebServiceWorkerCacheErrorLast) |
109 | 117 |
110 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, | 118 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, |
111 blink::WebGeofencingEventTypeLast) | 119 blink::WebGeofencingEventTypeLast) |
112 | 120 |
113 //--------------------------------------------------------------------------- | 121 //--------------------------------------------------------------------------- |
114 // Messages sent from the child process to the browser. | 122 // Messages sent from the child process to the browser. |
115 | 123 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 217 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
210 int /* client_id */, | 218 int /* client_id */, |
211 base::string16 /* message */, | 219 base::string16 /* message */, |
212 std::vector<int> /* sent_message_port_ids */) | 220 std::vector<int> /* sent_message_port_ids */) |
213 | 221 |
214 // Ask the browser to focus a client (renderer->browser). | 222 // Ask the browser to focus a client (renderer->browser). |
215 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, | 223 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, |
216 int /* request_id */, | 224 int /* request_id */, |
217 int /* client_id */) | 225 int /* client_id */) |
218 | 226 |
| 227 // Response to ServiceWorkerMsg_GetClientInfo. |
| 228 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClientInfoSuccess, |
| 229 int /* request_id */, |
| 230 content::ServiceWorkerClientInfo) |
| 231 |
| 232 // Response to ServiceWorkerMsg_GetClientInfo. |
| 233 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError, |
| 234 int /* request_id */) |
| 235 |
219 // CacheStorage operations in the browser. | 236 // CacheStorage operations in the browser. |
220 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, | 237 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, |
221 int /* request_id */, | 238 int /* request_id */, |
222 base::string16 /* fetch_store_name */) | 239 base::string16 /* fetch_store_name */) |
223 | 240 |
224 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, | 241 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, |
225 int /* request_id */, | 242 int /* request_id */, |
226 base::string16 /* fetch_store_name */) | 243 base::string16 /* fetch_store_name */) |
227 | 244 |
228 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, | 245 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 content::ServiceWorkerObjectInfo) | 375 content::ServiceWorkerObjectInfo) |
359 | 376 |
360 // Sends a 'message' event to a client document (browser->renderer). | 377 // Sends a 'message' event to a client document (browser->renderer). |
361 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, | 378 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, |
362 int /* thread_id */, | 379 int /* thread_id */, |
363 int /* provider_id */, | 380 int /* provider_id */, |
364 base::string16 /* message */, | 381 base::string16 /* message */, |
365 std::vector<int> /* sent_message_port_ids */, | 382 std::vector<int> /* sent_message_port_ids */, |
366 std::vector<int> /* new_routing_ids */) | 383 std::vector<int> /* new_routing_ids */) |
367 | 384 |
| 385 // Sent to client documents to request document properties. |
| 386 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GetClientInfo, |
| 387 int /* thread_id */, |
| 388 int /* embedded_worker_id */, |
| 389 int /* request_id */, |
| 390 int /* provider_id */) |
| 391 |
368 // Sent via EmbeddedWorker to dispatch events. | 392 // Sent via EmbeddedWorker to dispatch events. |
369 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, | 393 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, |
370 int /* request_id */, | 394 int /* request_id */, |
371 int /* active_version_id */) | 395 int /* active_version_id */) |
372 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 396 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
373 int /* request_id */) | 397 int /* request_id */) |
374 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 398 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
375 int /* request_id */, | 399 int /* request_id */, |
376 content::ServiceWorkerFetchRequest) | 400 content::ServiceWorkerFetchRequest) |
377 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, | 401 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, |
(...skipping 11 matching lines...) Expand all Loading... |
389 std::string /* region_id */, | 413 std::string /* region_id */, |
390 blink::WebCircularGeofencingRegion /* region */) | 414 blink::WebCircularGeofencingRegion /* region */) |
391 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, | 415 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, |
392 base::string16 /* message */, | 416 base::string16 /* message */, |
393 std::vector<int> /* sent_message_port_ids */, | 417 std::vector<int> /* sent_message_port_ids */, |
394 std::vector<int> /* new_routing_ids */) | 418 std::vector<int> /* new_routing_ids */) |
395 | 419 |
396 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 420 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
397 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 421 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
398 int /* request_id */, | 422 int /* request_id */, |
399 std::vector<int> /* client_ids */) | 423 std::vector<content::ServiceWorkerClientInfo>) |
400 | 424 |
401 // Sent via EmbeddedWorker as a response of FocusClient. | 425 // Sent via EmbeddedWorker as a response of FocusClient. |
402 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 426 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
403 int /* request_id */, | 427 int /* request_id */, |
404 bool /* result */) | 428 bool /* result */) |
405 | 429 |
406 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. | 430 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. |
407 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, | 431 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, |
408 int /* request_id */) | 432 int /* request_id */) |
409 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, | 433 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 blink::WebServiceWorkerCacheError) | 479 blink::WebServiceWorkerCacheError) |
456 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 480 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
457 int /* request_id */, | 481 int /* request_id */, |
458 blink::WebServiceWorkerCacheError) | 482 blink::WebServiceWorkerCacheError) |
459 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 483 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
460 int /* request_id */, | 484 int /* request_id */, |
461 blink::WebServiceWorkerCacheError) | 485 blink::WebServiceWorkerCacheError) |
462 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 486 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
463 int /* request_id */, | 487 int /* request_id */, |
464 blink::WebServiceWorkerCacheError) | 488 blink::WebServiceWorkerCacheError) |
OLD | NEW |