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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 int /* request_id */, | 138 int /* request_id */, |
139 int /* provider_id */, | 139 int /* provider_id */, |
140 GURL /* scope (url pattern) */) | 140 GURL /* scope (url pattern) */) |
141 | 141 |
142 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, | 142 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, |
143 int /* thread_id */, | 143 int /* thread_id */, |
144 int /* request_id */, | 144 int /* request_id */, |
145 int /* provider_id */, | 145 int /* provider_id */, |
146 GURL /* document_url */) | 146 GURL /* document_url */) |
147 | 147 |
| 148 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, |
| 149 int /* thread_id */, |
| 150 int /* request_id */, |
| 151 int /* provider_id */) |
| 152 |
148 // Sends a 'message' event to a service worker (renderer->browser). | 153 // Sends a 'message' event to a service worker (renderer->browser). |
149 IPC_MESSAGE_CONTROL3( | 154 IPC_MESSAGE_CONTROL3( |
150 ServiceWorkerHostMsg_PostMessageToWorker, | 155 ServiceWorkerHostMsg_PostMessageToWorker, |
151 int /* handle_id */, | 156 int /* handle_id */, |
152 base::string16 /* message */, | 157 base::string16 /* message */, |
153 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 158 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
154 | 159 |
155 // Informs the browser of a new ServiceWorkerProvider in the child process, | 160 // Informs the browser of a new ServiceWorkerProvider in the child process, |
156 // |provider_id| is unique within its child process. | 161 // |provider_id| is unique within its child process. |
157 // |render_frame_id| identifies the frame associated with the provider, it will | 162 // |render_frame_id| identifies the frame associated with the provider, it will |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 int /* request_id */, | 362 int /* request_id */, |
358 bool /* is_success */) | 363 bool /* is_success */) |
359 | 364 |
360 // Response to ServiceWorkerHostMsg_GetRegistration. | 365 // Response to ServiceWorkerHostMsg_GetRegistration. |
361 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, | 366 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, |
362 int /* thread_id */, | 367 int /* thread_id */, |
363 int /* request_id */, | 368 int /* request_id */, |
364 content::ServiceWorkerRegistrationObjectInfo, | 369 content::ServiceWorkerRegistrationObjectInfo, |
365 content::ServiceWorkerVersionAttributes) | 370 content::ServiceWorkerVersionAttributes) |
366 | 371 |
| 372 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. |
| 373 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady, |
| 374 int /* thread_id */, |
| 375 int /* request_id */, |
| 376 content::ServiceWorkerRegistrationObjectInfo, |
| 377 content::ServiceWorkerVersionAttributes) |
| 378 |
367 // Sent when any kind of registration error occurs during a | 379 // Sent when any kind of registration error occurs during a |
368 // RegisterServiceWorker handler above. | 380 // RegisterServiceWorker handler above. |
369 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 381 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
370 int /* thread_id */, | 382 int /* thread_id */, |
371 int /* request_id */, | 383 int /* request_id */, |
372 blink::WebServiceWorkerError::ErrorType /* code */, | 384 blink::WebServiceWorkerError::ErrorType /* code */, |
373 base::string16 /* message */) | 385 base::string16 /* message */) |
374 | 386 |
375 // Sent when any kind of registration error occurs during a | 387 // Sent when any kind of registration error occurs during a |
376 // UnregisterServiceWorker handler above. | 388 // UnregisterServiceWorker handler above. |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 blink::WebServiceWorkerCacheError) | 557 blink::WebServiceWorkerCacheError) |
546 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 558 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
547 int /* request_id */, | 559 int /* request_id */, |
548 blink::WebServiceWorkerCacheError) | 560 blink::WebServiceWorkerCacheError) |
549 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 561 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
550 int /* request_id */, | 562 int /* request_id */, |
551 blink::WebServiceWorkerCacheError) | 563 blink::WebServiceWorkerCacheError) |
552 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 564 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
553 int /* request_id */, | 565 int /* request_id */, |
554 blink::WebServiceWorkerCacheError) | 566 blink::WebServiceWorkerCacheError) |
OLD | NEW |