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

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

Issue 1270513002: Service Worker: Make ServiceWorkerRegistration.update() return a promise. (Chromium 2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass a raw ptr to callback's onError instead of a scoped_ptr. Created 5 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
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 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 // messaging between the browser process and the child process. 30 // messaging between the browser process and the child process.
31 static const int kDocumentMainThreadId = 0; 31 static const int kDocumentMainThreadId = 0;
32 32
33 // Indicates invalid request ID (i.e. the sender does not expect it gets 33 // Indicates invalid request ID (i.e. the sender does not expect it gets
34 // response for the message) for messaging between browser process 34 // response for the message) for messaging between browser process
35 // and embedded worker. 35 // and embedded worker.
36 static const int kInvalidServiceWorkerRequestId = -1; 36 static const int kInvalidServiceWorkerRequestId = -1;
37 37
38 // Constants for error messages. 38 // Constants for error messages.
39 extern const char kServiceWorkerRegisterErrorPrefix[]; 39 extern const char kServiceWorkerRegisterErrorPrefix[];
40 extern const char kServiceWorkerUpdateErrorPrefix[];
40 extern const char kServiceWorkerUnregisterErrorPrefix[]; 41 extern const char kServiceWorkerUnregisterErrorPrefix[];
41 extern const char kServiceWorkerGetRegistrationErrorPrefix[]; 42 extern const char kServiceWorkerGetRegistrationErrorPrefix[];
42 extern const char kServiceWorkerGetRegistrationsErrorPrefix[]; 43 extern const char kServiceWorkerGetRegistrationsErrorPrefix[];
43 extern const char kFetchScriptError[]; 44 extern const char kFetchScriptError[];
44 45
45 // Constants for invalid identifiers. 46 // Constants for invalid identifiers.
46 static const int kInvalidServiceWorkerHandleId = -1; 47 static const int kInvalidServiceWorkerHandleId = -1;
47 static const int kInvalidServiceWorkerRegistrationHandleId = -1; 48 static const int kInvalidServiceWorkerRegistrationHandleId = -1;
48 static const int kInvalidServiceWorkerProviderId = -1; 49 static const int kInvalidServiceWorkerProviderId = -1;
49 static const int64 kInvalidServiceWorkerRegistrationId = -1; 50 static const int64 kInvalidServiceWorkerRegistrationId = -1;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 206
206 struct ServiceWorkerClientQueryOptions { 207 struct ServiceWorkerClientQueryOptions {
207 ServiceWorkerClientQueryOptions(); 208 ServiceWorkerClientQueryOptions();
208 blink::WebServiceWorkerClientType client_type; 209 blink::WebServiceWorkerClientType client_type;
209 bool include_uncontrolled; 210 bool include_uncontrolled;
210 }; 211 };
211 212
212 } // namespace content 213 } // namespace content
213 214
214 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 215 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
OLDNEW
« no previous file with comments | « content/common/service_worker/service_worker_messages.h ('k') | content/common/service_worker/service_worker_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698