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_INFO_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo { | 63 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo { |
64 public: | 64 public: |
65 enum DeleteFlag { IS_NOT_DELETED, IS_DELETED }; | 65 enum DeleteFlag { IS_NOT_DELETED, IS_DELETED }; |
66 ServiceWorkerRegistrationInfo(); | 66 ServiceWorkerRegistrationInfo(); |
67 ServiceWorkerRegistrationInfo(const GURL& pattern, | 67 ServiceWorkerRegistrationInfo(const GURL& pattern, |
68 int64_t registration_id, | 68 int64_t registration_id, |
69 DeleteFlag delete_flag); | 69 DeleteFlag delete_flag); |
70 ServiceWorkerRegistrationInfo( | 70 ServiceWorkerRegistrationInfo( |
71 const GURL& pattern, | 71 const GURL& pattern, |
| 72 bool use_cache, |
72 int64_t registration_id, | 73 int64_t registration_id, |
73 DeleteFlag delete_flag, | 74 DeleteFlag delete_flag, |
74 const ServiceWorkerVersionInfo& active_version, | 75 const ServiceWorkerVersionInfo& active_version, |
75 const ServiceWorkerVersionInfo& waiting_version, | 76 const ServiceWorkerVersionInfo& waiting_version, |
76 const ServiceWorkerVersionInfo& installing_version, | 77 const ServiceWorkerVersionInfo& installing_version, |
77 int64_t active_version_total_size_bytes); | 78 int64_t active_version_total_size_bytes); |
78 ServiceWorkerRegistrationInfo(const ServiceWorkerRegistrationInfo& other); | 79 ServiceWorkerRegistrationInfo(const ServiceWorkerRegistrationInfo& other); |
79 ~ServiceWorkerRegistrationInfo(); | 80 ~ServiceWorkerRegistrationInfo(); |
80 | 81 |
81 GURL pattern; | 82 GURL pattern; |
| 83 bool use_cache; |
82 int64_t registration_id; | 84 int64_t registration_id; |
83 DeleteFlag delete_flag; | 85 DeleteFlag delete_flag; |
84 ServiceWorkerVersionInfo active_version; | 86 ServiceWorkerVersionInfo active_version; |
85 ServiceWorkerVersionInfo waiting_version; | 87 ServiceWorkerVersionInfo waiting_version; |
86 ServiceWorkerVersionInfo installing_version; | 88 ServiceWorkerVersionInfo installing_version; |
87 | 89 |
88 int64_t stored_version_size_bytes; | 90 int64_t stored_version_size_bytes; |
89 }; | 91 }; |
90 | 92 |
91 } // namespace content | 93 } // namespace content |
92 | 94 |
93 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ | 95 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
OLD | NEW |