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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 11 matching lines...) Expand all Loading... |
22 public: | 22 public: |
23 ClientInfo(); | 23 ClientInfo(); |
24 ClientInfo(int process_id, int route_id, ServiceWorkerProviderType type); | 24 ClientInfo(int process_id, int route_id, ServiceWorkerProviderType type); |
25 ~ClientInfo(); | 25 ~ClientInfo(); |
26 int process_id; | 26 int process_id; |
27 int route_id; | 27 int route_id; |
28 ServiceWorkerProviderType type; | 28 ServiceWorkerProviderType type; |
29 }; | 29 }; |
30 | 30 |
31 ServiceWorkerVersionInfo(); | 31 ServiceWorkerVersionInfo(); |
32 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status, | 32 ServiceWorkerVersionInfo(EmbeddedWorkerStatus running_status, |
33 ServiceWorkerVersion::Status status, | 33 ServiceWorkerVersion::Status status, |
34 const GURL& script_url, | 34 const GURL& script_url, |
35 int64_t registration_id, | 35 int64_t registration_id, |
36 int64_t version_id, | 36 int64_t version_id, |
37 int process_id, | 37 int process_id, |
38 int thread_id, | 38 int thread_id, |
39 int devtools_agent_route_id); | 39 int devtools_agent_route_id); |
40 ServiceWorkerVersionInfo(const ServiceWorkerVersionInfo& other); | 40 ServiceWorkerVersionInfo(const ServiceWorkerVersionInfo& other); |
41 ~ServiceWorkerVersionInfo(); | 41 ~ServiceWorkerVersionInfo(); |
42 | 42 |
43 ServiceWorkerVersion::RunningStatus running_status; | 43 EmbeddedWorkerStatus running_status; |
44 ServiceWorkerVersion::Status status; | 44 ServiceWorkerVersion::Status status; |
45 GURL script_url; | 45 GURL script_url; |
46 int64_t registration_id; | 46 int64_t registration_id; |
47 int64_t version_id; | 47 int64_t version_id; |
48 int process_id; | 48 int process_id; |
49 int thread_id; | 49 int thread_id; |
50 int devtools_agent_route_id; | 50 int devtools_agent_route_id; |
51 base::Time script_response_time; | 51 base::Time script_response_time; |
52 base::Time script_last_modified; | 52 base::Time script_last_modified; |
53 std::map<std::string, ClientInfo> clients; | 53 std::map<std::string, ClientInfo> clients; |
(...skipping 23 matching lines...) Expand all Loading... |
77 ServiceWorkerVersionInfo active_version; | 77 ServiceWorkerVersionInfo active_version; |
78 ServiceWorkerVersionInfo waiting_version; | 78 ServiceWorkerVersionInfo waiting_version; |
79 ServiceWorkerVersionInfo installing_version; | 79 ServiceWorkerVersionInfo installing_version; |
80 | 80 |
81 int64_t stored_version_size_bytes; | 81 int64_t stored_version_size_bytes; |
82 }; | 82 }; |
83 | 83 |
84 } // namespace content | 84 } // namespace content |
85 | 85 |
86 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ | 86 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
OLD | NEW |