Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: content/common/service_worker/service_worker_messages.h

Issue 445883003: ServiceWorker: Consolidate version change messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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::ServiceWorkerVersionAttributes)
61 IPC_STRUCT_TRAITS_MEMBER(installing)
62 IPC_STRUCT_TRAITS_MEMBER(waiting)
63 IPC_STRUCT_TRAITS_MEMBER(active)
64 IPC_STRUCT_TRAITS_END()
65
60 IPC_ENUM_TRAITS_MAX_VALUE( 66 IPC_ENUM_TRAITS_MAX_VALUE(
61 blink::WebServiceWorkerCacheError, 67 blink::WebServiceWorkerCacheError,
62 blink::WebServiceWorkerCacheErrorLast) 68 blink::WebServiceWorkerCacheErrorLast)
63 69
64 //--------------------------------------------------------------------------- 70 //---------------------------------------------------------------------------
65 // Messages sent from the child process to the browser. 71 // Messages sent from the child process to the browser.
66 72
67 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, 73 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker,
68 int /* thread_id */, 74 int /* thread_id */,
69 int /* request_id */, 75 int /* request_id */,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 int /* request_id */, 187 int /* request_id */,
182 blink::WebServiceWorkerError::ErrorType /* code */, 188 blink::WebServiceWorkerError::ErrorType /* code */,
183 base::string16 /* message */) 189 base::string16 /* message */)
184 190
185 // Informs the child process that the ServiceWorker's state has changed. 191 // Informs the child process that the ServiceWorker's state has changed.
186 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, 192 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged,
187 int /* thread_id */, 193 int /* thread_id */,
188 int /* handle_id */, 194 int /* handle_id */,
189 blink::WebServiceWorkerState) 195 blink::WebServiceWorkerState)
190 196
191 // Tells the child process to set the installing ServiceWorker for the given 197 // Tells the child process to set service workers for the given provider.
192 // provider. 198 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetVersionAttributes,
193 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetInstallingServiceWorker,
194 int /* thread_id */, 199 int /* thread_id */,
195 int /* provider_id */, 200 int /* provider_id */,
196 content::ServiceWorkerObjectInfo) 201 int /* changed_mask */,
197 202 content::ServiceWorkerVersionAttributes)
198 // Tells the child process to set the waiting ServiceWorker for the given
199 // provider.
200 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetWaitingServiceWorker,
201 int /* thread_id */,
202 int /* provider_id */,
203 content::ServiceWorkerObjectInfo)
204
205 // Tells the child process to set the active ServiceWorker for the given
206 // provider.
207 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetActiveServiceWorker,
208 int /* thread_id */,
209 int /* provider_id */,
210 content::ServiceWorkerObjectInfo)
211 203
212 // Tells the child process to set the controller ServiceWorker for the given 204 // Tells the child process to set the controller ServiceWorker for the given
213 // provider. 205 // provider.
214 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetControllerServiceWorker, 206 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetControllerServiceWorker,
215 int /* thread_id */, 207 int /* thread_id */,
216 int /* provider_id */, 208 int /* provider_id */,
217 content::ServiceWorkerObjectInfo) 209 content::ServiceWorkerObjectInfo)
218 210
219 // Sends a 'message' event to a client document (browser->renderer). 211 // Sends a 'message' event to a client document (browser->renderer).
220 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, 212 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 blink::WebServiceWorkerCacheError /* reason */) 264 blink::WebServiceWorkerCacheError /* reason */)
273 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, 265 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError,
274 int /* request_id */, 266 int /* request_id */,
275 blink::WebServiceWorkerCacheError /* reason */) 267 blink::WebServiceWorkerCacheError /* reason */)
276 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, 268 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError,
277 int /* request_id */, 269 int /* request_id */,
278 blink::WebServiceWorkerCacheError /* reason */) 270 blink::WebServiceWorkerCacheError /* reason */)
279 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, 271 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError,
280 int /* request_id */, 272 int /* request_id */,
281 blink::WebServiceWorkerCacheError /* reason */) 273 blink::WebServiceWorkerCacheError /* reason */)
OLDNEW
« no previous file with comments | « content/child/service_worker/service_worker_message_filter.cc ('k') | content/common/service_worker/service_worker_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698