| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo { | 70 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo { |
| 71 public: | 71 public: |
| 72 enum DeleteFlag { IS_NOT_DELETED, IS_DELETED }; | 72 enum DeleteFlag { IS_NOT_DELETED, IS_DELETED }; |
| 73 ServiceWorkerRegistrationInfo(); | 73 ServiceWorkerRegistrationInfo(); |
| 74 ServiceWorkerRegistrationInfo(const GURL& pattern, | 74 ServiceWorkerRegistrationInfo(const GURL& pattern, |
| 75 int64_t registration_id, | 75 int64_t registration_id, |
| 76 DeleteFlag delete_flag); | 76 DeleteFlag delete_flag); |
| 77 ServiceWorkerRegistrationInfo( | 77 ServiceWorkerRegistrationInfo( |
| 78 const GURL& pattern, | 78 const GURL& pattern, |
| 79 blink::WebServiceWorkerUpdateViaCache update_via_cache, |
| 79 int64_t registration_id, | 80 int64_t registration_id, |
| 80 DeleteFlag delete_flag, | 81 DeleteFlag delete_flag, |
| 81 const ServiceWorkerVersionInfo& active_version, | 82 const ServiceWorkerVersionInfo& active_version, |
| 82 const ServiceWorkerVersionInfo& waiting_version, | 83 const ServiceWorkerVersionInfo& waiting_version, |
| 83 const ServiceWorkerVersionInfo& installing_version, | 84 const ServiceWorkerVersionInfo& installing_version, |
| 84 int64_t active_version_total_size_bytes); | 85 int64_t active_version_total_size_bytes); |
| 85 ServiceWorkerRegistrationInfo(const ServiceWorkerRegistrationInfo& other); | 86 ServiceWorkerRegistrationInfo(const ServiceWorkerRegistrationInfo& other); |
| 86 ~ServiceWorkerRegistrationInfo(); | 87 ~ServiceWorkerRegistrationInfo(); |
| 87 | 88 |
| 88 GURL pattern; | 89 GURL pattern; |
| 90 blink::WebServiceWorkerUpdateViaCache update_via_cache; |
| 89 int64_t registration_id; | 91 int64_t registration_id; |
| 90 DeleteFlag delete_flag; | 92 DeleteFlag delete_flag; |
| 91 ServiceWorkerVersionInfo active_version; | 93 ServiceWorkerVersionInfo active_version; |
| 92 ServiceWorkerVersionInfo waiting_version; | 94 ServiceWorkerVersionInfo waiting_version; |
| 93 ServiceWorkerVersionInfo installing_version; | 95 ServiceWorkerVersionInfo installing_version; |
| 94 | 96 |
| 95 int64_t stored_version_size_bytes; | 97 int64_t stored_version_size_bytes; |
| 96 }; | 98 }; |
| 97 | 99 |
| 98 } // namespace content | 100 } // namespace content |
| 99 | 101 |
| 100 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ | 102 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
| OLD | NEW |