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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 // Indicates invalid request ID (i.e. the sender does not expect it gets | 32 // Indicates invalid request ID (i.e. the sender does not expect it gets |
33 // response for the message) for messaging between browser process | 33 // response for the message) for messaging between browser process |
34 // and embedded worker. | 34 // and embedded worker. |
35 static const int kInvalidServiceWorkerRequestId = -1; | 35 static const int kInvalidServiceWorkerRequestId = -1; |
36 | 36 |
37 // Constants for error messages. | 37 // Constants for error messages. |
38 extern const char kServiceWorkerRegisterErrorPrefix[]; | 38 extern const char kServiceWorkerRegisterErrorPrefix[]; |
39 extern const char kServiceWorkerUnregisterErrorPrefix[]; | 39 extern const char kServiceWorkerUnregisterErrorPrefix[]; |
40 extern const char kServiceWorkerGetRegistrationErrorPrefix[]; | 40 extern const char kServiceWorkerGetRegistrationErrorPrefix[]; |
| 41 extern const char kServiceWorkerGetRegistrationsErrorPrefix[]; |
41 extern const char kFetchScriptError[]; | 42 extern const char kFetchScriptError[]; |
42 | 43 |
43 // Constants for invalid identifiers. | 44 // Constants for invalid identifiers. |
44 static const int kInvalidServiceWorkerHandleId = -1; | 45 static const int kInvalidServiceWorkerHandleId = -1; |
45 static const int kInvalidServiceWorkerRegistrationHandleId = -1; | 46 static const int kInvalidServiceWorkerRegistrationHandleId = -1; |
46 static const int kInvalidServiceWorkerProviderId = -1; | 47 static const int kInvalidServiceWorkerProviderId = -1; |
47 static const int64 kInvalidServiceWorkerRegistrationId = -1; | 48 static const int64 kInvalidServiceWorkerRegistrationId = -1; |
48 static const int64 kInvalidServiceWorkerVersionId = -1; | 49 static const int64 kInvalidServiceWorkerVersionId = -1; |
49 static const int64 kInvalidServiceWorkerResourceId = -1; | 50 static const int64 kInvalidServiceWorkerResourceId = -1; |
50 static const int64 kInvalidServiceWorkerResponseId = -1; | 51 static const int64 kInvalidServiceWorkerResponseId = -1; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 194 |
194 struct ServiceWorkerClientQueryOptions { | 195 struct ServiceWorkerClientQueryOptions { |
195 ServiceWorkerClientQueryOptions(); | 196 ServiceWorkerClientQueryOptions(); |
196 blink::WebServiceWorkerClientType client_type; | 197 blink::WebServiceWorkerClientType client_type; |
197 bool include_uncontrolled; | 198 bool include_uncontrolled; |
198 }; | 199 }; |
199 | 200 |
200 } // namespace content | 201 } // namespace content |
201 | 202 |
202 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ | 203 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ |
OLD | NEW |