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