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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 int /* provider_id */, | 83 int /* provider_id */, |
84 GURL /* scope */, | 84 GURL /* scope */, |
85 GURL /* script_url */) | 85 GURL /* script_url */) |
86 | 86 |
87 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, | 87 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, |
88 int /* thread_id */, | 88 int /* thread_id */, |
89 int /* request_id */, | 89 int /* request_id */, |
90 int /* provider_id */, | 90 int /* provider_id */, |
91 GURL /* scope (url pattern) */) | 91 GURL /* scope (url pattern) */) |
92 | 92 |
| 93 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, |
| 94 int /* thread_id */, |
| 95 int /* request_id */, |
| 96 int /* provider_id */, |
| 97 GURL /* document_url */) |
| 98 |
93 // Sends a 'message' event to a service worker (renderer->browser). | 99 // Sends a 'message' event to a service worker (renderer->browser). |
94 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker, | 100 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker, |
95 int /* handle_id */, | 101 int /* handle_id */, |
96 base::string16 /* message */, | 102 base::string16 /* message */, |
97 std::vector<int> /* sent_message_port_ids */) | 103 std::vector<int> /* sent_message_port_ids */) |
98 | 104 |
99 // Informs the browser of a new ServiceWorkerProvider in the child process, | 105 // Informs the browser of a new ServiceWorkerProvider in the child process, |
100 // |provider_id| is unique within its child process. | 106 // |provider_id| is unique within its child process. |
101 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, | 107 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, |
102 int /* provider_id */) | 108 int /* provider_id */) |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 int /* request_id */) | 183 int /* request_id */) |
178 | 184 |
179 //--------------------------------------------------------------------------- | 185 //--------------------------------------------------------------------------- |
180 // Messages sent from the browser to the child process. | 186 // Messages sent from the browser to the child process. |
181 // | 187 // |
182 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have | 188 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have |
183 // a thread_id as their first field so that ServiceWorkerMessageFilter can | 189 // a thread_id as their first field so that ServiceWorkerMessageFilter can |
184 // extract it and dispatch the message to the correct ServiceWorkerDispatcher | 190 // extract it and dispatch the message to the correct ServiceWorkerDispatcher |
185 // on the correct thread. | 191 // on the correct thread. |
186 | 192 |
187 // Response to ServiceWorkerMsg_RegisterServiceWorker. | 193 // Response to ServiceWorkerHostMsg_RegisterServiceWorker. |
188 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, | 194 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, |
189 int /* thread_id */, | 195 int /* thread_id */, |
190 int /* request_id */, | 196 int /* request_id */, |
191 content::ServiceWorkerRegistrationObjectInfo, | 197 content::ServiceWorkerRegistrationObjectInfo, |
192 content::ServiceWorkerVersionAttributes) | 198 content::ServiceWorkerVersionAttributes) |
193 | 199 |
194 // Response to ServiceWorkerMsg_UnregisterServiceWorker. | 200 // Response to ServiceWorkerHostMsg_UnregisterServiceWorker. |
195 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, | 201 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, |
196 int /* thread_id */, | 202 int /* thread_id */, |
197 int /* request_id */) | 203 int /* request_id */) |
198 | 204 |
| 205 // Response to ServiceWorkerHostMsg_GetRegistration. |
| 206 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, |
| 207 int /* thread_id */, |
| 208 int /* request_id */, |
| 209 content::ServiceWorkerRegistrationObjectInfo, |
| 210 content::ServiceWorkerVersionAttributes) |
| 211 |
199 // Sent when any kind of registration error occurs during a | 212 // Sent when any kind of registration error occurs during a |
200 // RegisterServiceWorker handler above. | 213 // RegisterServiceWorker handler above. |
201 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 214 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
202 int /* thread_id */, | 215 int /* thread_id */, |
203 int /* request_id */, | 216 int /* request_id */, |
204 blink::WebServiceWorkerError::ErrorType /* code */, | 217 blink::WebServiceWorkerError::ErrorType /* code */, |
205 base::string16 /* message */) | 218 base::string16 /* message */) |
206 | 219 |
207 // Sent when any kind of registration error occurs during a | 220 // Sent when any kind of registration error occurs during a |
208 // UnregisterServiceWorker handler above. | 221 // UnregisterServiceWorker handler above. |
209 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerUnregistrationError, | 222 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerUnregistrationError, |
210 int /* thread_id */, | 223 int /* thread_id */, |
211 int /* request_id */, | 224 int /* request_id */, |
212 blink::WebServiceWorkerError::ErrorType /* code */, | 225 blink::WebServiceWorkerError::ErrorType /* code */, |
213 base::string16 /* message */) | 226 base::string16 /* message */) |
214 | 227 |
| 228 // Sent when any kind of registration error occurs during a |
| 229 // GetRegistration handler above. |
| 230 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationError, |
| 231 int /* thread_id */, |
| 232 int /* request_id */, |
| 233 blink::WebServiceWorkerError::ErrorType /* code */, |
| 234 base::string16 /* message */) |
| 235 |
215 // Informs the child process that the ServiceWorker's state has changed. | 236 // Informs the child process that the ServiceWorker's state has changed. |
216 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, | 237 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, |
217 int /* thread_id */, | 238 int /* thread_id */, |
218 int /* handle_id */, | 239 int /* handle_id */, |
219 blink::WebServiceWorkerState) | 240 blink::WebServiceWorkerState) |
220 | 241 |
221 // Tells the child process to set service workers for the given provider. | 242 // Tells the child process to set service workers for the given provider. |
222 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes, | 243 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes, |
223 int /* thread_id */, | 244 int /* thread_id */, |
224 int /* provider_id */, | 245 int /* provider_id */, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 blink::WebServiceWorkerCacheError /* reason */) | 316 blink::WebServiceWorkerCacheError /* reason */) |
296 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, | 317 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, |
297 int /* request_id */, | 318 int /* request_id */, |
298 blink::WebServiceWorkerCacheError /* reason */) | 319 blink::WebServiceWorkerCacheError /* reason */) |
299 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, | 320 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, |
300 int /* request_id */, | 321 int /* request_id */, |
301 blink::WebServiceWorkerCacheError /* reason */) | 322 blink::WebServiceWorkerCacheError /* reason */) |
302 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, | 323 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, |
303 int /* request_id */, | 324 int /* request_id */, |
304 blink::WebServiceWorkerCacheError /* reason */) | 325 blink::WebServiceWorkerCacheError /* reason */) |
OLD | NEW |