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 "base/time/time.h" |
11 #include "content/browser/service_worker/service_worker_version.h" | 11 #include "content/browser/service_worker/service_worker_version.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 struct CONTENT_EXPORT ServiceWorkerVersionInfo { | 17 struct CONTENT_EXPORT ServiceWorkerVersionInfo { |
18 public: | 18 public: |
19 struct ClientInfo { | 19 struct CONTENT_EXPORT ClientInfo { |
20 public: | 20 public: |
21 ClientInfo(); | 21 ClientInfo(); |
22 ClientInfo(int process_id, int route_id, ServiceWorkerProviderType type); | 22 ClientInfo(int process_id, int route_id, ServiceWorkerProviderType type); |
23 ~ClientInfo(); | 23 ~ClientInfo(); |
24 int process_id; | 24 int process_id; |
25 int route_id; | 25 int route_id; |
26 ServiceWorkerProviderType type; | 26 ServiceWorkerProviderType type; |
27 }; | 27 }; |
28 | 28 |
29 ServiceWorkerVersionInfo(); | 29 ServiceWorkerVersionInfo(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 ServiceWorkerVersionInfo active_version; | 73 ServiceWorkerVersionInfo active_version; |
74 ServiceWorkerVersionInfo waiting_version; | 74 ServiceWorkerVersionInfo waiting_version; |
75 ServiceWorkerVersionInfo installing_version; | 75 ServiceWorkerVersionInfo installing_version; |
76 | 76 |
77 int64_t stored_version_size_bytes; | 77 int64_t stored_version_size_bytes; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace content | 80 } // namespace content |
81 | 81 |
82 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ | 82 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
OLD | NEW |