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 13 matching lines...) Expand all Loading... | |
24 | 24 |
25 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerError::ErrorType, | 25 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerError::ErrorType, |
26 blink::WebServiceWorkerError::ErrorTypeLast) | 26 blink::WebServiceWorkerError::ErrorTypeLast) |
27 | 27 |
28 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerEventResult, | 28 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerEventResult, |
29 blink::WebServiceWorkerEventResultLast) | 29 blink::WebServiceWorkerEventResultLast) |
30 | 30 |
31 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerState, | 31 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerState, |
32 blink::WebServiceWorkerStateLast) | 32 blink::WebServiceWorkerStateLast) |
33 | 33 |
34 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerStatusCode, | |
35 content::SERVICE_WORKER_STATUS_LAST) | |
36 | |
34 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) | 37 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) |
35 IPC_STRUCT_TRAITS_MEMBER(url) | 38 IPC_STRUCT_TRAITS_MEMBER(url) |
36 IPC_STRUCT_TRAITS_MEMBER(method) | 39 IPC_STRUCT_TRAITS_MEMBER(method) |
37 IPC_STRUCT_TRAITS_MEMBER(headers) | 40 IPC_STRUCT_TRAITS_MEMBER(headers) |
38 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) | 41 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) |
39 IPC_STRUCT_TRAITS_MEMBER(blob_size) | 42 IPC_STRUCT_TRAITS_MEMBER(blob_size) |
40 IPC_STRUCT_TRAITS_MEMBER(referrer) | 43 IPC_STRUCT_TRAITS_MEMBER(referrer) |
41 IPC_STRUCT_TRAITS_MEMBER(is_reload) | 44 IPC_STRUCT_TRAITS_MEMBER(is_reload) |
42 IPC_STRUCT_TRAITS_END() | 45 IPC_STRUCT_TRAITS_END() |
43 | 46 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
185 // on the correct thread. | 188 // on the correct thread. |
186 | 189 |
187 // Response to ServiceWorkerMsg_RegisterServiceWorker. | 190 // Response to ServiceWorkerMsg_RegisterServiceWorker. |
188 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, | 191 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, |
189 int /* thread_id */, | 192 int /* thread_id */, |
190 int /* request_id */, | 193 int /* request_id */, |
191 content::ServiceWorkerRegistrationObjectInfo, | 194 content::ServiceWorkerRegistrationObjectInfo, |
192 content::ServiceWorkerVersionAttributes) | 195 content::ServiceWorkerVersionAttributes) |
193 | 196 |
194 // Response to ServiceWorkerMsg_UnregisterServiceWorker. | 197 // Response to ServiceWorkerMsg_UnregisterServiceWorker. |
195 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, | 198 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerUnregistered, |
196 int /* thread_id */, | 199 int /* thread_id */, |
197 int /* request_id */) | 200 int /* request_id */, |
201 content::ServiceWorkerStatusCode) | |
horo
2014/09/09 01:24:15
We don't need to send the status code.
What we nee
shimazu
2014/09/10 01:22:09
Done.
| |
198 | 202 |
199 // Sent when any kind of registration error occurs during a | 203 // Sent when any kind of registration error occurs during a |
200 // RegisterServiceWorker handler above. | 204 // RegisterServiceWorker handler above. |
201 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 205 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
202 int /* thread_id */, | 206 int /* thread_id */, |
203 int /* request_id */, | 207 int /* request_id */, |
204 blink::WebServiceWorkerError::ErrorType /* code */, | 208 blink::WebServiceWorkerError::ErrorType /* code */, |
205 base::string16 /* message */) | 209 base::string16 /* message */) |
206 | 210 |
207 // Sent when any kind of registration error occurs during a | 211 // Sent when any kind of registration error occurs during a |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
295 blink::WebServiceWorkerCacheError /* reason */) | 299 blink::WebServiceWorkerCacheError /* reason */) |
296 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, | 300 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, |
297 int /* request_id */, | 301 int /* request_id */, |
298 blink::WebServiceWorkerCacheError /* reason */) | 302 blink::WebServiceWorkerCacheError /* reason */) |
299 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, | 303 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, |
300 int /* request_id */, | 304 int /* request_id */, |
301 blink::WebServiceWorkerCacheError /* reason */) | 305 blink::WebServiceWorkerCacheError /* reason */) |
302 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, | 306 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, |
303 int /* request_id */, | 307 int /* request_id */, |
304 blink::WebServiceWorkerCacheError /* reason */) | 308 blink::WebServiceWorkerCacheError /* reason */) |
OLD | NEW |