Chromium Code Reviews| 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 19 matching lines...) Expand all Loading... | |
| 30 ServiceWorkerVersion::Status status; | 30 ServiceWorkerVersion::Status status; |
| 31 GURL script_url; | 31 GURL script_url; |
| 32 int64 registration_id; | 32 int64 registration_id; |
| 33 int64 version_id; | 33 int64 version_id; |
| 34 int process_id; | 34 int process_id; |
| 35 int thread_id; | 35 int thread_id; |
| 36 int devtools_agent_route_id; | 36 int devtools_agent_route_id; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 class CONTENT_EXPORT ServiceWorkerRegistrationInfo { | 39 class CONTENT_EXPORT ServiceWorkerRegistrationInfo { |
| 40 public: | 40 public: |
|
kinuko
2015/03/13 09:09:21
nit: could be a struct if all fields are public
horo
2015/03/13 10:03:50
Done.
| |
| 41 ServiceWorkerRegistrationInfo(); | 41 ServiceWorkerRegistrationInfo(); |
| 42 ServiceWorkerRegistrationInfo(const GURL& pattern, | |
| 43 int64 registration_id, | |
| 44 bool is_deleted); | |
|
kinuko
2015/03/13 09:09:21
nit: prefer using enum over boolean in general
horo
2015/03/13 10:03:50
Done.
| |
| 42 ServiceWorkerRegistrationInfo( | 45 ServiceWorkerRegistrationInfo( |
| 43 const GURL& pattern, | 46 const GURL& pattern, |
| 44 int64 registration_id, | 47 int64 registration_id, |
| 48 bool is_deleted, | |
| 45 const ServiceWorkerVersionInfo& active_version, | 49 const ServiceWorkerVersionInfo& active_version, |
| 46 const ServiceWorkerVersionInfo& waiting_version, | 50 const ServiceWorkerVersionInfo& waiting_version, |
| 47 const ServiceWorkerVersionInfo& installing_version, | 51 const ServiceWorkerVersionInfo& installing_version, |
| 48 int64_t active_version_total_size_bytes); | 52 int64_t active_version_total_size_bytes); |
| 49 ~ServiceWorkerRegistrationInfo(); | 53 ~ServiceWorkerRegistrationInfo(); |
| 50 | 54 |
| 51 GURL pattern; | 55 GURL pattern; |
| 52 int64 registration_id; | 56 int64 registration_id; |
| 57 bool is_deleted; | |
| 53 ServiceWorkerVersionInfo active_version; | 58 ServiceWorkerVersionInfo active_version; |
| 54 ServiceWorkerVersionInfo waiting_version; | 59 ServiceWorkerVersionInfo waiting_version; |
| 55 ServiceWorkerVersionInfo installing_version; | 60 ServiceWorkerVersionInfo installing_version; |
| 56 | 61 |
| 57 int64_t stored_version_size_bytes; | 62 int64_t stored_version_size_bytes; |
| 58 }; | 63 }; |
| 59 | 64 |
| 60 } // namespace content | 65 } // namespace content |
| 61 | 66 |
| 62 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ | 67 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
| OLD | NEW |