| 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(is_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 // Response to ServiceWorkerMsg_GetClientInfo. |
| 231 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError, |
| 232 int /* request_id */) |
| 233 |
| 217 // CacheStorage operations in the browser. | 234 // CacheStorage operations in the browser. |
| 218 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, | 235 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas, |
| 219 int /* request_id */, | 236 int /* request_id */, |
| 220 base::string16 /* fetch_store_name */) | 237 base::string16 /* fetch_store_name */) |
| 221 | 238 |
| 222 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, | 239 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageOpen, |
| 223 int /* request_id */, | 240 int /* request_id */, |
| 224 base::string16 /* fetch_store_name */) | 241 base::string16 /* fetch_store_name */) |
| 225 | 242 |
| 226 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, | 243 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 content::ServiceWorkerObjectInfo) | 368 content::ServiceWorkerObjectInfo) |
| 352 | 369 |
| 353 // Sends a 'message' event to a client document (browser->renderer). | 370 // Sends a 'message' event to a client document (browser->renderer). |
| 354 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, | 371 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, |
| 355 int /* thread_id */, | 372 int /* thread_id */, |
| 356 int /* provider_id */, | 373 int /* provider_id */, |
| 357 base::string16 /* message */, | 374 base::string16 /* message */, |
| 358 std::vector<int> /* sent_message_port_ids */, | 375 std::vector<int> /* sent_message_port_ids */, |
| 359 std::vector<int> /* new_routing_ids */) | 376 std::vector<int> /* new_routing_ids */) |
| 360 | 377 |
| 378 // Sent to client documents to request document properties. |
| 379 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GetClientInfo, |
| 380 int /* thread_id */, |
| 381 int /* embedded_worker_id */, |
| 382 int /* request_id */, |
| 383 int /* provider_id */) |
| 384 |
| 361 // Sent via EmbeddedWorker to dispatch events. | 385 // Sent via EmbeddedWorker to dispatch events. |
| 362 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, | 386 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent, |
| 363 int /* request_id */, | 387 int /* request_id */, |
| 364 int /* active_version_id */) | 388 int /* active_version_id */) |
| 365 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 389 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
| 366 int /* request_id */) | 390 int /* request_id */) |
| 367 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 391 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
| 368 int /* request_id */, | 392 int /* request_id */, |
| 369 content::ServiceWorkerFetchRequest) | 393 content::ServiceWorkerFetchRequest) |
| 370 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, | 394 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 381 std::string /* region_id */, | 405 std::string /* region_id */, |
| 382 blink::WebCircularGeofencingRegion /* region */) | 406 blink::WebCircularGeofencingRegion /* region */) |
| 383 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, | 407 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, |
| 384 base::string16 /* message */, | 408 base::string16 /* message */, |
| 385 std::vector<int> /* sent_message_port_ids */, | 409 std::vector<int> /* sent_message_port_ids */, |
| 386 std::vector<int> /* new_routing_ids */) | 410 std::vector<int> /* new_routing_ids */) |
| 387 | 411 |
| 388 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 412 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
| 389 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 413 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
| 390 int /* request_id */, | 414 int /* request_id */, |
| 391 std::vector<int> /* client_ids */) | 415 std::vector<content::ServiceWorkerClientInfo>) |
| 392 | 416 |
| 393 // Sent via EmbeddedWorker as a response of FocusClient. | 417 // Sent via EmbeddedWorker as a response of FocusClient. |
| 394 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 418 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
| 395 int /* request_id */, | 419 int /* request_id */, |
| 396 bool /* result */) | 420 bool /* result */) |
| 397 | 421 |
| 398 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. | 422 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. |
| 399 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, | 423 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, |
| 400 int /* request_id */) | 424 int /* request_id */) |
| 401 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, | 425 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 blink::WebServiceWorkerCacheError) | 465 blink::WebServiceWorkerCacheError) |
| 442 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 466 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
| 443 int /* request_id */, | 467 int /* request_id */, |
| 444 blink::WebServiceWorkerCacheError) | 468 blink::WebServiceWorkerCacheError) |
| 445 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 469 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
| 446 int /* request_id */, | 470 int /* request_id */, |
| 447 blink::WebServiceWorkerCacheError) | 471 blink::WebServiceWorkerCacheError) |
| 448 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 472 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
| 449 int /* request_id */, | 473 int /* request_id */, |
| 450 blink::WebServiceWorkerCacheError) | 474 blink::WebServiceWorkerCacheError) |
| OLD | NEW |