| 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" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class CONTENT_EXPORT ServiceWorkerVersionInfo { | 16 class CONTENT_EXPORT ServiceWorkerVersionInfo { |
| 17 public: | 17 public: |
| 18 ServiceWorkerVersionInfo(); | 18 ServiceWorkerVersionInfo(); |
| 19 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status, | 19 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status, |
| 20 ServiceWorkerVersion::Status status, | 20 ServiceWorkerVersion::Status status, |
| 21 const GURL& script_url, | 21 const GURL& script_url, |
| 22 int64 version_id, | 22 int64 version_id, |
| 23 int process_id, | 23 int process_id, |
| 24 int thread_id, | 24 int thread_id, |
| 25 int devtools_agent_route_id); | 25 int devtools_agent_route_id, |
| 26 size_t resources_total_size_bytes); |
| 26 ~ServiceWorkerVersionInfo(); | 27 ~ServiceWorkerVersionInfo(); |
| 27 | 28 |
| 28 bool is_null; | 29 bool is_null; |
| 29 ServiceWorkerVersion::RunningStatus running_status; | 30 ServiceWorkerVersion::RunningStatus running_status; |
| 30 ServiceWorkerVersion::Status status; | 31 ServiceWorkerVersion::Status status; |
| 31 GURL script_url; | 32 GURL script_url; |
| 32 int64 version_id; | 33 int64 version_id; |
| 33 int process_id; | 34 int process_id; |
| 34 int thread_id; | 35 int thread_id; |
| 35 int devtools_agent_route_id; | 36 int devtools_agent_route_id; |
| 37 size_t resources_total_size_bytes; |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 class CONTENT_EXPORT ServiceWorkerRegistrationInfo { | 40 class CONTENT_EXPORT ServiceWorkerRegistrationInfo { |
| 39 public: | 41 public: |
| 40 ServiceWorkerRegistrationInfo(); | 42 ServiceWorkerRegistrationInfo(); |
| 41 ServiceWorkerRegistrationInfo( | 43 ServiceWorkerRegistrationInfo( |
| 42 const GURL& pattern, | 44 const GURL& pattern, |
| 43 int64 registration_id, | 45 int64 registration_id, |
| 44 const ServiceWorkerVersionInfo& active_version, | 46 const ServiceWorkerVersionInfo& active_version, |
| 45 const ServiceWorkerVersionInfo& waiting_version, | 47 const ServiceWorkerVersionInfo& waiting_version, |
| 46 const ServiceWorkerVersionInfo& installing_version); | 48 const ServiceWorkerVersionInfo& installing_version); |
| 47 ~ServiceWorkerRegistrationInfo(); | 49 ~ServiceWorkerRegistrationInfo(); |
| 48 | 50 |
| 49 GURL pattern; | 51 GURL pattern; |
| 50 int64 registration_id; | 52 int64 registration_id; |
| 51 ServiceWorkerVersionInfo controlling_version; | 53 ServiceWorkerVersionInfo controlling_version; |
| 52 ServiceWorkerVersionInfo active_version; | 54 ServiceWorkerVersionInfo active_version; |
| 53 ServiceWorkerVersionInfo waiting_version; | 55 ServiceWorkerVersionInfo waiting_version; |
| 54 ServiceWorkerVersionInfo installing_version; | 56 ServiceWorkerVersionInfo installing_version; |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 } // namespace content | 59 } // namespace content |
| 58 | 60 |
| 59 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ | 61 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
| OLD | NEW |