| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 int /* request_id */, | 134 int /* request_id */, |
| 135 int /* provider_id */, | 135 int /* provider_id */, |
| 136 GURL /* scope (url pattern) */) | 136 GURL /* scope (url pattern) */) |
| 137 | 137 |
| 138 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, | 138 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, |
| 139 int /* thread_id */, | 139 int /* thread_id */, |
| 140 int /* request_id */, | 140 int /* request_id */, |
| 141 int /* provider_id */, | 141 int /* provider_id */, |
| 142 GURL /* document_url */) | 142 GURL /* document_url */) |
| 143 | 143 |
| 144 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetReadyRegistration, |
| 145 int /* thread_id */, |
| 146 int /* request_id */, |
| 147 int /* provider_id */) |
| 148 |
| 144 // Sends a 'message' event to a service worker (renderer->browser). | 149 // Sends a 'message' event to a service worker (renderer->browser). |
| 145 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker, | 150 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker, |
| 146 int /* handle_id */, | 151 int /* handle_id */, |
| 147 base::string16 /* message */, | 152 base::string16 /* message */, |
| 148 std::vector<int> /* sent_message_port_ids */) | 153 std::vector<int> /* sent_message_port_ids */) |
| 149 | 154 |
| 150 // Informs the browser of a new ServiceWorkerProvider in the child process, | 155 // Informs the browser of a new ServiceWorkerProvider in the child process, |
| 151 // |provider_id| is unique within its child process. | 156 // |provider_id| is unique within its child process. |
| 152 // |render_frame_id| identifies the frame associated with the provider, it will | 157 // |render_frame_id| identifies the frame associated with the provider, it will |
| 153 // it will be MSG_ROUTING_NONE if the context is a worker instead of a document. | 158 // it will be MSG_ROUTING_NONE if the context is a worker instead of a document. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 int /* request_id */, | 338 int /* request_id */, |
| 334 bool /* is_success */) | 339 bool /* is_success */) |
| 335 | 340 |
| 336 // Response to ServiceWorkerHostMsg_GetRegistration. | 341 // Response to ServiceWorkerHostMsg_GetRegistration. |
| 337 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, | 342 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, |
| 338 int /* thread_id */, | 343 int /* thread_id */, |
| 339 int /* request_id */, | 344 int /* request_id */, |
| 340 content::ServiceWorkerRegistrationObjectInfo, | 345 content::ServiceWorkerRegistrationObjectInfo, |
| 341 content::ServiceWorkerVersionAttributes) | 346 content::ServiceWorkerVersionAttributes) |
| 342 | 347 |
| 348 // Response to ServiceWorkerHostMsg_GetReadyRegistration. |
| 349 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetReadyRegistration, |
| 350 int /* thread_id */, |
| 351 int /* request_id */, |
| 352 content::ServiceWorkerRegistrationObjectInfo, |
| 353 content::ServiceWorkerVersionAttributes) |
| 354 |
| 343 // Sent when any kind of registration error occurs during a | 355 // Sent when any kind of registration error occurs during a |
| 344 // RegisterServiceWorker handler above. | 356 // RegisterServiceWorker handler above. |
| 345 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 357 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
| 346 int /* thread_id */, | 358 int /* thread_id */, |
| 347 int /* request_id */, | 359 int /* request_id */, |
| 348 blink::WebServiceWorkerError::ErrorType /* code */, | 360 blink::WebServiceWorkerError::ErrorType /* code */, |
| 349 base::string16 /* message */) | 361 base::string16 /* message */) |
| 350 | 362 |
| 351 // Sent when any kind of registration error occurs during a | 363 // Sent when any kind of registration error occurs during a |
| 352 // UnregisterServiceWorker handler above. | 364 // UnregisterServiceWorker handler above. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 blink::WebServiceWorkerCacheError) | 527 blink::WebServiceWorkerCacheError) |
| 516 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 528 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
| 517 int /* request_id */, | 529 int /* request_id */, |
| 518 blink::WebServiceWorkerCacheError) | 530 blink::WebServiceWorkerCacheError) |
| 519 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 531 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
| 520 int /* request_id */, | 532 int /* request_id */, |
| 521 blink::WebServiceWorkerCacheError) | 533 blink::WebServiceWorkerCacheError) |
| 522 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 534 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
| 523 int /* request_id */, | 535 int /* request_id */, |
| 524 blink::WebServiceWorkerCacheError) | 536 blink::WebServiceWorkerCacheError) |
| OLD | NEW |