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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) | 50 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) |
51 IPC_STRUCT_TRAITS_END() | 51 IPC_STRUCT_TRAITS_END() |
52 | 52 |
53 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) | 53 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) |
54 IPC_STRUCT_TRAITS_MEMBER(handle_id) | 54 IPC_STRUCT_TRAITS_MEMBER(handle_id) |
55 IPC_STRUCT_TRAITS_MEMBER(scope) | 55 IPC_STRUCT_TRAITS_MEMBER(scope) |
56 IPC_STRUCT_TRAITS_MEMBER(url) | 56 IPC_STRUCT_TRAITS_MEMBER(url) |
57 IPC_STRUCT_TRAITS_MEMBER(state) | 57 IPC_STRUCT_TRAITS_MEMBER(state) |
58 IPC_STRUCT_TRAITS_END() | 58 IPC_STRUCT_TRAITS_END() |
59 | 59 |
| 60 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationObjectInfo) |
| 61 IPC_STRUCT_TRAITS_MEMBER(handle_id) |
| 62 IPC_STRUCT_TRAITS_MEMBER(scope) |
| 63 IPC_STRUCT_TRAITS_END() |
| 64 |
60 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) | 65 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) |
61 IPC_STRUCT_TRAITS_MEMBER(installing) | 66 IPC_STRUCT_TRAITS_MEMBER(installing) |
62 IPC_STRUCT_TRAITS_MEMBER(waiting) | 67 IPC_STRUCT_TRAITS_MEMBER(waiting) |
63 IPC_STRUCT_TRAITS_MEMBER(active) | 68 IPC_STRUCT_TRAITS_MEMBER(active) |
64 IPC_STRUCT_TRAITS_END() | 69 IPC_STRUCT_TRAITS_END() |
65 | 70 |
66 IPC_ENUM_TRAITS_MAX_VALUE( | 71 IPC_ENUM_TRAITS_MAX_VALUE( |
67 blink::WebServiceWorkerCacheError, | 72 blink::WebServiceWorkerCacheError, |
68 blink::WebServiceWorkerCacheErrorLast) | 73 blink::WebServiceWorkerCacheErrorLast) |
69 | 74 |
(...skipping 25 matching lines...) Expand all Loading... |
95 int /* provider_id */) | 100 int /* provider_id */) |
96 | 101 |
97 // Informs the browser of a ServiceWorkerProvider being destroyed. | 102 // Informs the browser of a ServiceWorkerProvider being destroyed. |
98 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 103 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
99 int /* provider_id */) | 104 int /* provider_id */) |
100 | 105 |
101 // Increments and decrements the ServiceWorker object's reference | 106 // Increments and decrements the ServiceWorker object's reference |
102 // counting in the browser side. The ServiceWorker object is created | 107 // counting in the browser side. The ServiceWorker object is created |
103 // with ref-count==1 initially. | 108 // with ref-count==1 initially. |
104 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, | 109 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, |
105 int /* registration_handle_id */) | 110 int /* handle_id */) |
106 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementServiceWorkerRefCount, | 111 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementServiceWorkerRefCount, |
107 int /* registration_handle_id */) | 112 int /* handle_id */) |
108 | 113 |
109 // Increments and decrements the ServiceWorkerRegistration object's reference | 114 // Increments and decrements the ServiceWorkerRegistration object's reference |
110 // counting in the browser side. The registration object is created with | 115 // counting in the browser side. The registration object is created with |
111 // ref-count==1 initially. | 116 // ref-count==1 initially. |
112 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementRegistrationRefCount, | 117 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementRegistrationRefCount, |
113 int /* handle_id */) | 118 int /* registration_handle_id */) |
114 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementRegistrationRefCount, | 119 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementRegistrationRefCount, |
115 int /* handle_id */) | 120 int /* registration_handle_id */) |
116 | 121 |
117 // Informs the browser that |provider_id| is associated | 122 // Informs the browser that |provider_id| is associated |
118 // with a service worker script running context and | 123 // with a service worker script running context and |
119 // |version_id| identifies which ServcieWorkerVersion. | 124 // |version_id| identifies which ServcieWorkerVersion. |
120 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId, | 125 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId, |
121 int /* provider_id */, | 126 int /* provider_id */, |
122 int64 /* version_id */) | 127 int64 /* version_id */) |
123 | 128 |
124 // Informs the browser that event handling has finished. | 129 // Informs the browser that event handling has finished. |
125 // Routed to the target ServiceWorkerVersion. | 130 // Routed to the target ServiceWorkerVersion. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 176 |
172 //--------------------------------------------------------------------------- | 177 //--------------------------------------------------------------------------- |
173 // Messages sent from the browser to the child process. | 178 // Messages sent from the browser to the child process. |
174 // | 179 // |
175 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have | 180 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have |
176 // a thread_id as their first field so that ServiceWorkerMessageFilter can | 181 // a thread_id as their first field so that ServiceWorkerMessageFilter can |
177 // extract it and dispatch the message to the correct ServiceWorkerDispatcher | 182 // extract it and dispatch the message to the correct ServiceWorkerDispatcher |
178 // on the correct thread. | 183 // on the correct thread. |
179 | 184 |
180 // Response to ServiceWorkerMsg_RegisterServiceWorker. | 185 // Response to ServiceWorkerMsg_RegisterServiceWorker. |
181 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, | 186 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, |
182 int /* thread_id */, | 187 int /* thread_id */, |
183 int /* request_id */, | 188 int /* request_id */, |
184 int /* registration_handle_id */, | 189 content::ServiceWorkerRegistrationObjectInfo) |
185 content::ServiceWorkerObjectInfo) | |
186 | 190 |
187 // Response to ServiceWorkerMsg_UnregisterServiceWorker. | 191 // Response to ServiceWorkerMsg_UnregisterServiceWorker. |
188 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, | 192 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, |
189 int /* thread_id */, | 193 int /* thread_id */, |
190 int /* request_id */) | 194 int /* request_id */) |
191 | 195 |
192 // Sent when any kind of registration error occurs during a | 196 // Sent when any kind of registration error occurs during a |
193 // RegisterServiceWorker / UnregisterServiceWorker handler above. | 197 // RegisterServiceWorker / UnregisterServiceWorker handler above. |
194 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 198 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
195 int /* thread_id */, | 199 int /* thread_id */, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 blink::WebServiceWorkerCacheError /* reason */) | 278 blink::WebServiceWorkerCacheError /* reason */) |
275 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, | 279 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, |
276 int /* request_id */, | 280 int /* request_id */, |
277 blink::WebServiceWorkerCacheError /* reason */) | 281 blink::WebServiceWorkerCacheError /* reason */) |
278 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, | 282 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, |
279 int /* request_id */, | 283 int /* request_id */, |
280 blink::WebServiceWorkerCacheError /* reason */) | 284 blink::WebServiceWorkerCacheError /* reason */) |
281 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, | 285 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, |
282 int /* request_id */, | 286 int /* request_id */, |
283 blink::WebServiceWorkerCacheError /* reason */) | 287 blink::WebServiceWorkerCacheError /* reason */) |
OLD | NEW |