| 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // version may be in the ACTIVATED state or in the INSTALLED state. | 68 // version may be in the ACTIVATED state or in the INSTALLED state. |
| 69 GURL script; | 69 GURL script; |
| 70 int64_t version_id; | 70 int64_t version_id; |
| 71 bool is_active; | 71 bool is_active; |
| 72 bool has_fetch_handler; | 72 bool has_fetch_handler; |
| 73 base::Time last_update_check; | 73 base::Time last_update_check; |
| 74 std::vector<GURL> foreign_fetch_scopes; | 74 std::vector<GURL> foreign_fetch_scopes; |
| 75 std::vector<url::Origin> foreign_fetch_origins; | 75 std::vector<url::Origin> foreign_fetch_origins; |
| 76 base::Optional<TrialTokenValidator::FeatureToTokensMap> origin_trial_tokens; | 76 base::Optional<TrialTokenValidator::FeatureToTokensMap> origin_trial_tokens; |
| 77 NavigationPreloadState navigation_preload_state; | 77 NavigationPreloadState navigation_preload_state; |
| 78 std::set<uint32_t> used_features; |
| 78 | 79 |
| 79 // Not populated until ServiceWorkerStorage::StoreRegistration is called. | 80 // Not populated until ServiceWorkerStorage::StoreRegistration is called. |
| 80 int64_t resources_total_size_bytes; | 81 int64_t resources_total_size_bytes; |
| 81 | 82 |
| 82 RegistrationData(); | 83 RegistrationData(); |
| 83 RegistrationData(const RegistrationData& other); | 84 RegistrationData(const RegistrationData& other); |
| 84 ~RegistrationData(); | 85 ~RegistrationData(); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 struct ResourceRecord { | 88 struct ResourceRecord { |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, | 397 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, |
| 397 UserData_UninitializedDatabase); | 398 UserData_UninitializedDatabase); |
| 398 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, DestroyDatabase); | 399 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, DestroyDatabase); |
| 399 | 400 |
| 400 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDatabase); | 401 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDatabase); |
| 401 }; | 402 }; |
| 402 | 403 |
| 403 } // namespace content | 404 } // namespace content |
| 404 | 405 |
| 405 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ | 406 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ |
| OLD | NEW |