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

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: 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
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 // unassociated with the registration.
189 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_AssociateRegistration,
190 int /* thread_id */,
191 int /* provider_id */,
192 content::ServiceWorkerRegistrationObjectInfo)
193 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_UnassociateRegistration,
194 int /* thread_id */,
195 int /* provider_id */)
196
187 // Response to ServiceWorkerMsg_RegisterServiceWorker. 197 // Response to ServiceWorkerMsg_RegisterServiceWorker.
188 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, 198 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered,
189 int /* thread_id */, 199 int /* thread_id */,
190 int /* request_id */, 200 int /* request_id */,
191 content::ServiceWorkerRegistrationObjectInfo, 201 content::ServiceWorkerRegistrationObjectInfo,
192 content::ServiceWorkerVersionAttributes) 202 content::ServiceWorkerVersionAttributes)
193 203
194 // Response to ServiceWorkerMsg_UnregisterServiceWorker. 204 // Response to ServiceWorkerMsg_UnregisterServiceWorker.
195 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, 205 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
196 int /* thread_id */, 206 int /* thread_id */,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 blink::WebServiceWorkerCacheError /* reason */) 297 blink::WebServiceWorkerCacheError /* reason */)
288 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, 298 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError,
289 int /* request_id */, 299 int /* request_id */,
290 blink::WebServiceWorkerCacheError /* reason */) 300 blink::WebServiceWorkerCacheError /* reason */)
291 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, 301 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError,
292 int /* request_id */, 302 int /* request_id */,
293 blink::WebServiceWorkerCacheError /* reason */) 303 blink::WebServiceWorkerCacheError /* reason */)
294 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, 304 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError,
295 int /* request_id */, 305 int /* request_id */,
296 blink::WebServiceWorkerCacheError /* reason */) 306 blink::WebServiceWorkerCacheError /* reason */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698