Chromium Code Reviews| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 int handle_id; | 216 int handle_id; |
| 217 GURL url; | 217 GURL url; |
| 218 blink::WebServiceWorkerState state; | 218 blink::WebServiceWorkerState state; |
| 219 int64_t version_id; | 219 int64_t version_id; |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 struct CONTENT_EXPORT ServiceWorkerRegistrationObjectInfo { | 222 struct CONTENT_EXPORT ServiceWorkerRegistrationObjectInfo { |
| 223 ServiceWorkerRegistrationObjectInfo(); | 223 ServiceWorkerRegistrationObjectInfo(); |
| 224 int handle_id; | 224 int handle_id; |
| 225 GURL scope; | 225 GURL scope; |
| 226 bool use_cache; | |
|
nhiroki
2017/03/24 00:33:42
|scope| and |use_cache| could be replaced with Ser
yuryu
2017/03/28 05:08:56
Done.
| |
| 226 int64_t registration_id; | 227 int64_t registration_id; |
| 227 }; | 228 }; |
| 228 | 229 |
| 230 struct CONTENT_EXPORT ServiceWorkerRegistrationAttributes { | |
|
nhiroki
2017/03/24 00:33:42
"RegistrationAttributes" could sound a bit confusi
falken
2017/03/24 04:06:19
+1, and then using this struct when possible when
yuryu
2017/03/28 05:08:56
Done.
| |
| 231 GURL pattern; | |
| 232 GURL script_url; | |
| 233 bool use_cache; | |
| 234 }; | |
| 235 | |
| 229 struct ServiceWorkerVersionAttributes { | 236 struct ServiceWorkerVersionAttributes { |
| 230 ServiceWorkerObjectInfo installing; | 237 ServiceWorkerObjectInfo installing; |
| 231 ServiceWorkerObjectInfo waiting; | 238 ServiceWorkerObjectInfo waiting; |
| 232 ServiceWorkerObjectInfo active; | 239 ServiceWorkerObjectInfo active; |
| 233 }; | 240 }; |
| 234 | 241 |
| 235 class ChangedVersionAttributesMask { | 242 class ChangedVersionAttributesMask { |
| 236 public: | 243 public: |
| 237 enum { | 244 enum { |
| 238 INSTALLING_VERSION = 1 << 0, | 245 INSTALLING_VERSION = 1 << 0, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 278 NavigationPreloadState(); | 285 NavigationPreloadState(); |
| 279 NavigationPreloadState(bool enabled, std::string header); | 286 NavigationPreloadState(bool enabled, std::string header); |
| 280 NavigationPreloadState(const NavigationPreloadState& other); | 287 NavigationPreloadState(const NavigationPreloadState& other); |
| 281 bool enabled; | 288 bool enabled; |
| 282 std::string header; | 289 std::string header; |
| 283 }; | 290 }; |
| 284 | 291 |
| 285 } // namespace content | 292 } // namespace content |
| 286 | 293 |
| 287 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ | 294 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ |
| OLD | NEW |