| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 IPC_STRUCT_TRAITS_MEMBER(scope) | 94 IPC_STRUCT_TRAITS_MEMBER(scope) |
| 95 IPC_STRUCT_TRAITS_MEMBER(registration_id) | 95 IPC_STRUCT_TRAITS_MEMBER(registration_id) |
| 96 IPC_STRUCT_TRAITS_END() | 96 IPC_STRUCT_TRAITS_END() |
| 97 | 97 |
| 98 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) | 98 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) |
| 99 IPC_STRUCT_TRAITS_MEMBER(installing) | 99 IPC_STRUCT_TRAITS_MEMBER(installing) |
| 100 IPC_STRUCT_TRAITS_MEMBER(waiting) | 100 IPC_STRUCT_TRAITS_MEMBER(waiting) |
| 101 IPC_STRUCT_TRAITS_MEMBER(active) | 101 IPC_STRUCT_TRAITS_MEMBER(active) |
| 102 IPC_STRUCT_TRAITS_END() | 102 IPC_STRUCT_TRAITS_END() |
| 103 | 103 |
| 104 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) |
| 105 IPC_STRUCT_TRAITS_MEMBER(client_id) |
| 106 IPC_STRUCT_TRAITS_MEMBER(visibility_state) |
| 107 IPC_STRUCT_TRAITS_MEMBER(focused) |
| 108 IPC_STRUCT_TRAITS_MEMBER(url) |
| 109 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
| 110 IPC_STRUCT_TRAITS_END() |
| 111 |
| 104 IPC_ENUM_TRAITS_MAX_VALUE( | 112 IPC_ENUM_TRAITS_MAX_VALUE( |
| 105 blink::WebServiceWorkerCacheError, | 113 blink::WebServiceWorkerCacheError, |
| 106 blink::WebServiceWorkerCacheErrorLast) | 114 blink::WebServiceWorkerCacheErrorLast) |
| 107 | 115 |
| 108 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, | 116 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, |
| 109 blink::WebGeofencingEventTypeLast) | 117 blink::WebGeofencingEventTypeLast) |
| 110 | 118 |
| 111 //--------------------------------------------------------------------------- | 119 //--------------------------------------------------------------------------- |
| 112 // Messages sent from the child process to the browser. | 120 // Messages sent from the child process to the browser. |
| 113 | 121 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 215 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
| 208 int /* client_id */, | 216 int /* client_id */, |
| 209 base::string16 /* message */, | 217 base::string16 /* message */, |
| 210 std::vector<int> /* sent_message_port_ids */) | 218 std::vector<int> /* sent_message_port_ids */) |
| 211 | 219 |
| 212 // Ask the browser to focus a client (renderer->browser). | 220 // Ask the browser to focus a client (renderer->browser). |
| 213 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, | 221 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, |
| 214 int /* request_id */, | 222 int /* request_id */, |
| 215 int /* client_id */) | 223 int /* client_id */) |
| 216 | 224 |
| 225 // Response to ServiceWorkerMsg_GetClientInfo. |
| 226 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClientInfoSuccess, |
| 227 int /* request_id */, |
| 228 content::ServiceWorkerClientInfo) |
| 229 |
| 230 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError, |
| 231 int /* request_id */) |
| 232 |
| 217 // CacheStorage operations in the browser. | 233 // CacheStorage operations in the browser. |
| 218 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, | 234 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, |
| 219 int /* request_id */, | 235 int /* request_id */, |
| 220 base::string16 /* fetch_store_name */) | 236 base::string16 /* fetch_store_name */) |
| 221 | 237 |
| 222 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, | 238 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, |
| 223 int /* request_id */, | 239 int /* request_id */, |
| 224 base::string16 /* fetch_store_name */) | 240 base::string16 /* fetch_store_name */) |
| 225 | 241 |
| 226 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, | 242 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 content::ServiceWorkerObjectInfo) | 367 content::ServiceWorkerObjectInfo) |
| 352 | 368 |
| 353 // Sends a 'message' event to a client document (browser->renderer). | 369 // Sends a 'message' event to a client document (browser->renderer). |
| 354 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, | 370 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, |
| 355 int /* thread_id */, | 371 int /* thread_id */, |
| 356 int /* provider_id */, | 372 int /* provider_id */, |
| 357 base::string16 /* message */, | 373 base::string16 /* message */, |
| 358 std::vector<int> /* sent_message_port_ids */, | 374 std::vector<int> /* sent_message_port_ids */, |
| 359 std::vector<int> /* new_routing_ids */) | 375 std::vector<int> /* new_routing_ids */) |
| 360 | 376 |
| 377 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GetClientInfo, |
| 378 int /* thread_id */, |
| 379 int /* embedded_worker_id */, |
| 380 int /* request_id */, |
| 381 int /* provider_id */) |
| 382 |
| 361 // Sent via EmbeddedWorker to dispatch events. | 383 // Sent via EmbeddedWorker to dispatch events. |
| 362 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, | 384 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, |
| 363 int /* request_id */, | 385 int /* request_id */, |
| 364 int /* active_version_id */) | 386 int /* active_version_id */) |
| 365 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 387 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
| 366 int /* request_id */) | 388 int /* request_id */) |
| 367 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 389 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
| 368 int /* request_id */, | 390 int /* request_id */, |
| 369 content::ServiceWorkerFetchRequest) | 391 content::ServiceWorkerFetchRequest) |
| 370 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, | 392 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 381 std::string /* region_id */, | 403 std::string /* region_id */, |
| 382 blink::WebCircularGeofencingRegion /* region */) | 404 blink::WebCircularGeofencingRegion /* region */) |
| 383 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, | 405 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, |
| 384 base::string16 /* message */, | 406 base::string16 /* message */, |
| 385 std::vector<int> /* sent_message_port_ids */, | 407 std::vector<int> /* sent_message_port_ids */, |
| 386 std::vector<int> /* new_routing_ids */) | 408 std::vector<int> /* new_routing_ids */) |
| 387 | 409 |
| 388 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 410 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
| 389 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 411 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
| 390 int /* request_id */, | 412 int /* request_id */, |
| 391 std::vector<int> /* client_ids */) | 413 std::vector<content::ServiceWorkerClientInfo>) |
| 392 | 414 |
| 393 // Sent via EmbeddedWorker as a response of FocusClient. | 415 // Sent via EmbeddedWorker as a response of FocusClient. |
| 394 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 416 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
| 395 int /* request_id */, | 417 int /* request_id */, |
| 396 bool /* result */) | 418 bool /* result */) |
| 397 | 419 |
| 398 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. | 420 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. |
| 399 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, | 421 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, |
| 400 int /* request_id */) | 422 int /* request_id */) |
| 401 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, | 423 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 blink::WebServiceWorkerCacheError) | 463 blink::WebServiceWorkerCacheError) |
| 442 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 464 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
| 443 int /* request_id */, | 465 int /* request_id */, |
| 444 blink::WebServiceWorkerCacheError) | 466 blink::WebServiceWorkerCacheError) |
| 445 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 467 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
| 446 int /* request_id */, | 468 int /* request_id */, |
| 447 blink::WebServiceWorkerCacheError) | 469 blink::WebServiceWorkerCacheError) |
| 448 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 470 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
| 449 int /* request_id */, | 471 int /* request_id */, |
| 450 blink::WebServiceWorkerCacheError) | 472 blink::WebServiceWorkerCacheError) |
| OLD | NEW |