| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 //--------------------------------------------------------------------------- | 131 //--------------------------------------------------------------------------- |
| 132 // Messages sent from the child process to the browser. | 132 // Messages sent from the child process to the browser. |
| 133 | 133 |
| 134 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, | 134 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, |
| 135 int /* thread_id */, | 135 int /* thread_id */, |
| 136 int /* request_id */, | 136 int /* request_id */, |
| 137 int /* provider_id */, | 137 int /* provider_id */, |
| 138 GURL /* scope */, | 138 GURL /* scope */, |
| 139 GURL /* script_url */) | 139 GURL /* script_url */) |
| 140 | 140 |
| 141 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_UpdateServiceWorker, | 141 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UpdateServiceWorker, |
| 142 int /* thread_id */, |
| 143 int /* request_id */, |
| 142 int /* provider_id */, | 144 int /* provider_id */, |
| 143 int64 /* registration_id */) | 145 int64 /* registration_id */) |
| 144 | 146 |
| 145 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, | 147 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, |
| 146 int /* thread_id */, | 148 int /* thread_id */, |
| 147 int /* request_id */, | 149 int /* request_id */, |
| 148 int /* provider_id */, | 150 int /* provider_id */, |
| 149 int64 /* registration_id */) | 151 int64 /* registration_id */) |
| 150 | 152 |
| 151 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, | 153 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 int /* thread_id */, | 316 int /* thread_id */, |
| 315 int /* provider_id */) | 317 int /* provider_id */) |
| 316 | 318 |
| 317 // Response to ServiceWorkerHostMsg_RegisterServiceWorker. | 319 // Response to ServiceWorkerHostMsg_RegisterServiceWorker. |
| 318 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, | 320 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, |
| 319 int /* thread_id */, | 321 int /* thread_id */, |
| 320 int /* request_id */, | 322 int /* request_id */, |
| 321 content::ServiceWorkerRegistrationObjectInfo, | 323 content::ServiceWorkerRegistrationObjectInfo, |
| 322 content::ServiceWorkerVersionAttributes) | 324 content::ServiceWorkerVersionAttributes) |
| 323 | 325 |
| 326 // Response to ServiceWorkerHostMsg_UpdateServiceWorker. |
| 327 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUpdated, |
| 328 int /* thread_id */, |
| 329 int /* request_id */) |
| 330 |
| 324 // Response to ServiceWorkerHostMsg_UnregisterServiceWorker. | 331 // Response to ServiceWorkerHostMsg_UnregisterServiceWorker. |
| 325 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerUnregistered, | 332 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerUnregistered, |
| 326 int /* thread_id */, | 333 int /* thread_id */, |
| 327 int /* request_id */, | 334 int /* request_id */, |
| 328 bool /* is_success */) | 335 bool /* is_success */) |
| 329 | 336 |
| 330 // Response to ServiceWorkerHostMsg_GetRegistration. | 337 // Response to ServiceWorkerHostMsg_GetRegistration. |
| 331 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, | 338 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, |
| 332 int /* thread_id */, | 339 int /* thread_id */, |
| 333 int /* request_id */, | 340 int /* request_id */, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 349 content::ServiceWorkerVersionAttributes) | 356 content::ServiceWorkerVersionAttributes) |
| 350 | 357 |
| 351 // Sent when any kind of registration error occurs during a | 358 // Sent when any kind of registration error occurs during a |
| 352 // RegisterServiceWorker handler above. | 359 // RegisterServiceWorker handler above. |
| 353 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 360 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
| 354 int /* thread_id */, | 361 int /* thread_id */, |
| 355 int /* request_id */, | 362 int /* request_id */, |
| 356 blink::WebServiceWorkerError::ErrorType /* code */, | 363 blink::WebServiceWorkerError::ErrorType /* code */, |
| 357 base::string16 /* message */) | 364 base::string16 /* message */) |
| 358 | 365 |
| 366 // Sent when any kind of update error occurs during a |
| 367 // UpdateServiceWorker handler above. |
| 368 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerUpdateError, |
| 369 int /* thread_id */, |
| 370 int /* request_id */, |
| 371 blink::WebServiceWorkerError::ErrorType /* code */, |
| 372 base::string16 /* message */) |
| 373 |
| 359 // Sent when any kind of registration error occurs during a | 374 // Sent when any kind of registration error occurs during a |
| 360 // UnregisterServiceWorker handler above. | 375 // UnregisterServiceWorker handler above. |
| 361 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerUnregistrationError, | 376 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerUnregistrationError, |
| 362 int /* thread_id */, | 377 int /* thread_id */, |
| 363 int /* request_id */, | 378 int /* request_id */, |
| 364 blink::WebServiceWorkerError::ErrorType /* code */, | 379 blink::WebServiceWorkerError::ErrorType /* code */, |
| 365 base::string16 /* message */) | 380 base::string16 /* message */) |
| 366 | 381 |
| 367 // Sent when any kind of registration error occurs during a | 382 // Sent when any kind of registration error occurs during a |
| 368 // GetRegistration handler above. | 383 // GetRegistration handler above. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 492 |
| 478 // Sent via EmbeddedWorker as a response of NavigateClient. | 493 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 479 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 494 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 480 int /* request_id */, | 495 int /* request_id */, |
| 481 content::ServiceWorkerClientInfo /* client */) | 496 content::ServiceWorkerClientInfo /* client */) |
| 482 | 497 |
| 483 // Sent via EmbeddedWorker as an error response of NavigateClient. | 498 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 484 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 499 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 485 int /* request_id */, | 500 int /* request_id */, |
| 486 GURL /* url */) | 501 GURL /* url */) |
| OLD | NEW |