| 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 "base/time/time.h" |
| 10 #include "content/browser/service_worker/service_worker_version.h" | 11 #include "content/browser/service_worker/service_worker_version.h" |
| 11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 | 16 |
| 16 struct CONTENT_EXPORT ServiceWorkerVersionInfo { | 17 struct CONTENT_EXPORT ServiceWorkerVersionInfo { |
| 17 public: | 18 public: |
| 18 ServiceWorkerVersionInfo(); | 19 ServiceWorkerVersionInfo(); |
| 19 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status, | 20 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status, |
| 20 ServiceWorkerVersion::Status status, | 21 ServiceWorkerVersion::Status status, |
| 21 const GURL& script_url, | 22 const GURL& script_url, |
| 22 int64 registration_id, | 23 int64 registration_id, |
| 23 int64 version_id, | 24 int64 version_id, |
| 24 int process_id, | 25 int process_id, |
| 25 int thread_id, | 26 int thread_id, |
| 26 int devtools_agent_route_id); | 27 int devtools_agent_route_id, |
| 28 base::Time update_time); |
| 27 ~ServiceWorkerVersionInfo(); | 29 ~ServiceWorkerVersionInfo(); |
| 28 | 30 |
| 29 ServiceWorkerVersion::RunningStatus running_status; | 31 ServiceWorkerVersion::RunningStatus running_status; |
| 30 ServiceWorkerVersion::Status status; | 32 ServiceWorkerVersion::Status status; |
| 31 GURL script_url; | 33 GURL script_url; |
| 32 int64 registration_id; | 34 int64 registration_id; |
| 33 int64 version_id; | 35 int64 version_id; |
| 34 int process_id; | 36 int process_id; |
| 35 int thread_id; | 37 int thread_id; |
| 36 int devtools_agent_route_id; | 38 int devtools_agent_route_id; |
| 39 base::Time update_time; |
| 37 }; | 40 }; |
| 38 | 41 |
| 39 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo { | 42 struct CONTENT_EXPORT ServiceWorkerRegistrationInfo { |
| 40 public: | 43 public: |
| 41 enum DeleteFlag { IS_NOT_DELETED, IS_DELETED }; | 44 enum DeleteFlag { IS_NOT_DELETED, IS_DELETED }; |
| 42 ServiceWorkerRegistrationInfo(); | 45 ServiceWorkerRegistrationInfo(); |
| 43 ServiceWorkerRegistrationInfo(const GURL& pattern, | 46 ServiceWorkerRegistrationInfo(const GURL& pattern, |
| 44 int64 registration_id, | 47 int64 registration_id, |
| 45 DeleteFlag delete_flag); | 48 DeleteFlag delete_flag); |
| 46 ServiceWorkerRegistrationInfo( | 49 ServiceWorkerRegistrationInfo( |
| (...skipping 12 matching lines...) Expand all Loading... |
| 59 ServiceWorkerVersionInfo active_version; | 62 ServiceWorkerVersionInfo active_version; |
| 60 ServiceWorkerVersionInfo waiting_version; | 63 ServiceWorkerVersionInfo waiting_version; |
| 61 ServiceWorkerVersionInfo installing_version; | 64 ServiceWorkerVersionInfo installing_version; |
| 62 | 65 |
| 63 int64_t stored_version_size_bytes; | 66 int64_t stored_version_size_bytes; |
| 64 }; | 67 }; |
| 65 | 68 |
| 66 } // namespace content | 69 } // namespace content |
| 67 | 70 |
| 68 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ | 71 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
| OLD | NEW |