| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "content/common/message_port.h" | 14 #include "content/common/message_port.h" |
| 15 #include "content/common/service_worker/service_worker_client_info.h" | 15 #include "content/common/service_worker/service_worker_client_info.h" |
| 16 #include "content/common/service_worker/service_worker_status_code.h" | 16 #include "content/common/service_worker/service_worker_status_code.h" |
| 17 #include "content/common/service_worker/service_worker_types.h" | 17 #include "content/common/service_worker/service_worker_types.h" |
| 18 #include "content/public/common/platform_notification_data.h" | 18 #include "content/public/common/platform_notification_data.h" |
| 19 #include "content/public/common/push_event_payload.h" | 19 #include "content/public/common/push_event_payload.h" |
| 20 #include "ipc/ipc_message_macros.h" | 20 #include "ipc/ipc_message_macros.h" |
| 21 #include "ipc/ipc_param_traits.h" | 21 #include "ipc/ipc_param_traits.h" |
| 22 #include "mojo/public/cpp/system/message_pipe.h" |
| 22 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerError.h" | 23 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerError.h" |
| 23 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerEventResult.h" | 24 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerEventResult.h" |
| 24 #include "url/gurl.h" | 25 #include "url/gurl.h" |
| 25 #include "url/origin.h" | 26 #include "url/origin.h" |
| 26 | 27 |
| 27 #undef IPC_MESSAGE_EXPORT | 28 #undef IPC_MESSAGE_EXPORT |
| 28 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 29 | 30 |
| 30 #define IPC_MESSAGE_START ServiceWorkerMsgStart | 31 #define IPC_MESSAGE_START ServiceWorkerMsgStart |
| 31 | 32 |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 // disassociated with the registration. | 323 // disassociated with the registration. |
| 323 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_AssociateRegistration, | 324 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_AssociateRegistration, |
| 324 int /* thread_id */, | 325 int /* thread_id */, |
| 325 int /* provider_id */, | 326 int /* provider_id */, |
| 326 content::ServiceWorkerRegistrationObjectInfo, | 327 content::ServiceWorkerRegistrationObjectInfo, |
| 327 content::ServiceWorkerVersionAttributes) | 328 content::ServiceWorkerVersionAttributes) |
| 328 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DisassociateRegistration, | 329 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DisassociateRegistration, |
| 329 int /* thread_id */, | 330 int /* thread_id */, |
| 330 int /* provider_id */) | 331 int /* provider_id */) |
| 331 | 332 |
| 332 // Response to ServiceWorkerHostMsg_RegisterServiceWorker. | 333 // Response to ServiceWorkerHostMsg_RegisterServiceWorker. The |
| 333 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, | 334 // MessagePipeHandle is only used with --enable-network-service. |
| 335 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_ServiceWorkerRegistered, |
| 334 int /* thread_id */, | 336 int /* thread_id */, |
| 335 int /* request_id */, | 337 int /* request_id */, |
| 336 content::ServiceWorkerRegistrationObjectInfo, | 338 content::ServiceWorkerRegistrationObjectInfo, |
| 337 content::ServiceWorkerVersionAttributes) | 339 content::ServiceWorkerVersionAttributes, |
| 340 mojo::MessagePipeHandle /* url_loader_factory */) |
| 338 | 341 |
| 339 // Response to ServiceWorkerHostMsg_UpdateServiceWorker. | 342 // Response to ServiceWorkerHostMsg_UpdateServiceWorker. |
| 340 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUpdated, | 343 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUpdated, |
| 341 int /* thread_id */, | 344 int /* thread_id */, |
| 342 int /* request_id */) | 345 int /* request_id */) |
| 343 | 346 |
| 344 // Response to ServiceWorkerHostMsg_UnregisterServiceWorker. | 347 // Response to ServiceWorkerHostMsg_UnregisterServiceWorker. |
| 345 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerUnregistered, | 348 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerUnregistered, |
| 346 int /* thread_id */, | 349 int /* thread_id */, |
| 347 int /* request_id */, | 350 int /* request_id */, |
| 348 bool /* is_success */) | 351 bool /* is_success */) |
| 349 | 352 |
| 350 // Response to ServiceWorkerHostMsg_GetRegistration. | 353 // Response to ServiceWorkerHostMsg_GetRegistration. The |
| 351 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, | 354 // MessagePipeHandle is only used with --enable-network-service. |
| 355 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_DidGetRegistration, |
| 352 int /* thread_id */, | 356 int /* thread_id */, |
| 353 int /* request_id */, | 357 int /* request_id */, |
| 354 content::ServiceWorkerRegistrationObjectInfo, | 358 content::ServiceWorkerRegistrationObjectInfo, |
| 355 content::ServiceWorkerVersionAttributes) | 359 content::ServiceWorkerVersionAttributes, |
| 360 mojo::MessagePipeHandle /* url_loader_factory */) |
| 356 | 361 |
| 357 // Response to ServiceWorkerHostMsg_GetRegistrations. | 362 // Response to ServiceWorkerHostMsg_GetRegistrations. The vector of |
| 358 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrations, | 363 // MessagePipeHandles is only used with --enable-network-service. |
| 364 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_DidGetRegistrations, |
| 359 int /* thread_id */, | 365 int /* thread_id */, |
| 360 int /* request_id */, | 366 int /* request_id */, |
| 361 std::vector<content::ServiceWorkerRegistrationObjectInfo>, | 367 std::vector<content::ServiceWorkerRegistrationObjectInfo>, |
| 362 std::vector<content::ServiceWorkerVersionAttributes>) | 368 std::vector<content::ServiceWorkerVersionAttributes>, |
| 369 std::vector<mojo::MessagePipeHandle>) |
| 363 | 370 |
| 364 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. | 371 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. The |
| 365 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady, | 372 // MessagePipeHandle is only used with --enable-network-service. |
| 373 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_DidGetRegistrationForReady, |
| 366 int /* thread_id */, | 374 int /* thread_id */, |
| 367 int /* request_id */, | 375 int /* request_id */, |
| 368 content::ServiceWorkerRegistrationObjectInfo, | 376 content::ServiceWorkerRegistrationObjectInfo, |
| 369 content::ServiceWorkerVersionAttributes) | 377 content::ServiceWorkerVersionAttributes, |
| 378 mojo::MessagePipeHandle /* url_loader_factory */) |
| 370 | 379 |
| 371 // Sent when any kind of registration error occurs during a | 380 // Sent when any kind of registration error occurs during a |
| 372 // RegisterServiceWorker handler above. | 381 // RegisterServiceWorker handler above. |
| 373 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 382 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
| 374 int /* thread_id */, | 383 int /* thread_id */, |
| 375 int /* request_id */, | 384 int /* request_id */, |
| 376 blink::WebServiceWorkerError::ErrorType /* code */, | 385 blink::WebServiceWorkerError::ErrorType /* code */, |
| 377 base::string16 /* message */) | 386 base::string16 /* message */) |
| 378 | 387 |
| 379 // Sent when any kind of update error occurs during a | 388 // Sent when any kind of update error occurs during a |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 523 |
| 515 // Sent via EmbeddedWorker as a response of NavigateClient. | 524 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 516 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 525 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 517 int /* request_id */, | 526 int /* request_id */, |
| 518 content::ServiceWorkerClientInfo /* client */) | 527 content::ServiceWorkerClientInfo /* client */) |
| 519 | 528 |
| 520 // Sent via EmbeddedWorker as an error response of NavigateClient. | 529 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 521 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 530 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 522 int /* request_id */, | 531 int /* request_id */, |
| 523 GURL /* url */) | 532 GURL /* url */) |
| OLD | NEW |