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 #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 Loading... |
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 Loading... |
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_ |
OLD | NEW |