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

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

Issue 477593007: ServiceWorker: Make '.ready' return a promise to be resolved with ServiceWorkerRegistration (2/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « content/child/service_worker/web_service_worker_provider_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 int /* request_id */) 177 int /* request_id */)
178 178
179 //--------------------------------------------------------------------------- 179 //---------------------------------------------------------------------------
180 // Messages sent from the browser to the child process. 180 // Messages sent from the browser to the child process.
181 // 181 //
182 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have 182 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have
183 // a thread_id as their first field so that ServiceWorkerMessageFilter can 183 // a thread_id as their first field so that ServiceWorkerMessageFilter can
184 // extract it and dispatch the message to the correct ServiceWorkerDispatcher 184 // extract it and dispatch the message to the correct ServiceWorkerDispatcher
185 // on the correct thread. 185 // on the correct thread.
186 186
187 // Informs the child process that the given provider gets associated or
188 // disassociated with the registration.
189 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_AssociateRegistration,
190 int /* thread_id */,
191 int /* provider_id */,
192 content::ServiceWorkerRegistrationObjectInfo,
193 content::ServiceWorkerVersionAttributes)
194 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DisassociateRegistration,
195 int /* thread_id */,
196 int /* provider_id */)
197
187 // Response to ServiceWorkerMsg_RegisterServiceWorker. 198 // Response to ServiceWorkerMsg_RegisterServiceWorker.
188 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, 199 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered,
189 int /* thread_id */, 200 int /* thread_id */,
190 int /* request_id */, 201 int /* request_id */,
191 content::ServiceWorkerRegistrationObjectInfo, 202 content::ServiceWorkerRegistrationObjectInfo,
192 content::ServiceWorkerVersionAttributes) 203 content::ServiceWorkerVersionAttributes)
193 204
194 // Response to ServiceWorkerMsg_UnregisterServiceWorker. 205 // Response to ServiceWorkerMsg_UnregisterServiceWorker.
195 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, 206 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
196 int /* thread_id */, 207 int /* thread_id */,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 blink::WebServiceWorkerCacheError /* reason */) 306 blink::WebServiceWorkerCacheError /* reason */)
296 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, 307 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError,
297 int /* request_id */, 308 int /* request_id */,
298 blink::WebServiceWorkerCacheError /* reason */) 309 blink::WebServiceWorkerCacheError /* reason */)
299 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, 310 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError,
300 int /* request_id */, 311 int /* request_id */,
301 blink::WebServiceWorkerCacheError /* reason */) 312 blink::WebServiceWorkerCacheError /* reason */)
302 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, 313 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError,
303 int /* request_id */, 314 int /* request_id */,
304 blink::WebServiceWorkerCacheError /* reason */) 315 blink::WebServiceWorkerCacheError /* reason */)
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_provider_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698