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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 int64_t version_id; | 220 int64_t version_id; |
221 }; | 221 }; |
222 | 222 |
223 struct CONTENT_EXPORT ServiceWorkerRegistrationObjectInfo { | 223 struct CONTENT_EXPORT ServiceWorkerRegistrationObjectInfo { |
224 ServiceWorkerRegistrationObjectInfo(); | 224 ServiceWorkerRegistrationObjectInfo(); |
225 int handle_id; | 225 int handle_id; |
226 GURL scope; | 226 GURL scope; |
227 int64_t registration_id; | 227 int64_t registration_id; |
228 }; | 228 }; |
229 | 229 |
230 struct ServiceWorkerVersionAttributes { | 230 struct CONTENT_EXPORT ServiceWorkerVersionAttributes { |
231 ServiceWorkerObjectInfo installing; | 231 ServiceWorkerObjectInfo installing; |
232 ServiceWorkerObjectInfo waiting; | 232 ServiceWorkerObjectInfo waiting; |
233 ServiceWorkerObjectInfo active; | 233 ServiceWorkerObjectInfo active; |
234 }; | 234 }; |
235 | 235 |
236 class ChangedVersionAttributesMask { | 236 class ChangedVersionAttributesMask { |
237 public: | 237 public: |
238 enum { | 238 enum { |
239 INSTALLING_VERSION = 1 << 0, | 239 INSTALLING_VERSION = 1 << 0, |
240 WAITING_VERSION = 1 << 1, | 240 WAITING_VERSION = 1 << 1, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 NavigationPreloadState(); | 279 NavigationPreloadState(); |
280 NavigationPreloadState(bool enabled, std::string header); | 280 NavigationPreloadState(bool enabled, std::string header); |
281 NavigationPreloadState(const NavigationPreloadState& other); | 281 NavigationPreloadState(const NavigationPreloadState& other); |
282 bool enabled; | 282 bool enabled; |
283 std::string header; | 283 std::string header; |
284 }; | 284 }; |
285 | 285 |
286 } // namespace content | 286 } // namespace content |
287 | 287 |
288 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ | 288 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ |
OLD | NEW |