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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "content/browser/service_worker/service_worker_version.h" | 10 #include "content/browser/service_worker/service_worker_version.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 }; | 35 }; |
36 | 36 |
37 class CONTENT_EXPORT ServiceWorkerRegistrationInfo { | 37 class CONTENT_EXPORT ServiceWorkerRegistrationInfo { |
38 public: | 38 public: |
39 ServiceWorkerRegistrationInfo(); | 39 ServiceWorkerRegistrationInfo(); |
40 ServiceWorkerRegistrationInfo( | 40 ServiceWorkerRegistrationInfo( |
41 const GURL& pattern, | 41 const GURL& pattern, |
42 int64 registration_id, | 42 int64 registration_id, |
43 const ServiceWorkerVersionInfo& active_version, | 43 const ServiceWorkerVersionInfo& active_version, |
44 const ServiceWorkerVersionInfo& waiting_version, | 44 const ServiceWorkerVersionInfo& waiting_version, |
45 const ServiceWorkerVersionInfo& installing_version); | 45 const ServiceWorkerVersionInfo& installing_version, |
| 46 int64_t active_version_total_size_bytes); |
46 ~ServiceWorkerRegistrationInfo(); | 47 ~ServiceWorkerRegistrationInfo(); |
47 | 48 |
48 GURL pattern; | 49 GURL pattern; |
49 int64 registration_id; | 50 int64 registration_id; |
50 ServiceWorkerVersionInfo controlling_version; | 51 ServiceWorkerVersionInfo controlling_version; |
51 ServiceWorkerVersionInfo active_version; | 52 ServiceWorkerVersionInfo active_version; |
52 ServiceWorkerVersionInfo waiting_version; | 53 ServiceWorkerVersionInfo waiting_version; |
53 ServiceWorkerVersionInfo installing_version; | 54 ServiceWorkerVersionInfo installing_version; |
| 55 |
| 56 int64_t stored_version_size_bytes; |
54 }; | 57 }; |
55 | 58 |
56 } // namespace content | 59 } // namespace content |
57 | 60 |
58 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ | 61 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
OLD | NEW |