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 #include "content/browser/service_worker/service_worker_info.h" | 5 #include "content/browser/service_worker/service_worker_info.h" |
6 | 6 |
7 #include "content/common/service_worker/service_worker_types.h" | 7 #include "content/common/service_worker/service_worker_types.h" |
8 #include "content/public/common/child_process_host.h" | 8 #include "content/public/common/child_process_host.h" |
9 #include "ipc/ipc_message.h" | 9 #include "ipc/ipc_message.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 ServiceWorkerVersionInfo::ClientInfo::ClientInfo() | 13 ServiceWorkerVersionInfo::ClientInfo::ClientInfo() |
14 : ClientInfo(ChildProcessHost::kInvalidUniqueID, | 14 : ClientInfo(ChildProcessHost::kInvalidUniqueID, |
15 MSG_ROUTING_NONE, | 15 MSG_ROUTING_NONE, |
16 SERVICE_WORKER_PROVIDER_UNKNOWN) {} | 16 SERVICE_WORKER_PROVIDER_UNKNOWN) {} |
17 | 17 |
18 ServiceWorkerVersionInfo::ClientInfo::ClientInfo(int process_id, | 18 ServiceWorkerVersionInfo::ClientInfo::ClientInfo(int process_id, |
19 int route_id, | 19 int route_id, |
20 ServiceWorkerProviderType type) | 20 ServiceWorkerProviderType type) |
21 : process_id(process_id), route_id(route_id), type(type) { | 21 : process_id(process_id), route_id(route_id), type(type) { |
22 } | 22 } |
23 | 23 |
24 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() { | 24 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() { |
25 } | 25 } |
26 | 26 |
27 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() | 27 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() |
28 : running_status(ServiceWorkerVersion::STOPPED), | 28 : running_status(ServiceWorkerVersion::RunningStatus::STOPPED), |
29 status(ServiceWorkerVersion::NEW), | 29 status(ServiceWorkerVersion::NEW), |
30 registration_id(kInvalidServiceWorkerRegistrationId), | 30 registration_id(kInvalidServiceWorkerRegistrationId), |
31 version_id(kInvalidServiceWorkerVersionId), | 31 version_id(kInvalidServiceWorkerVersionId), |
32 process_id(ChildProcessHost::kInvalidUniqueID), | 32 process_id(ChildProcessHost::kInvalidUniqueID), |
33 thread_id(kInvalidEmbeddedWorkerThreadId), | 33 thread_id(kInvalidEmbeddedWorkerThreadId), |
34 devtools_agent_route_id(MSG_ROUTING_NONE) {} | 34 devtools_agent_route_id(MSG_ROUTING_NONE) {} |
35 | 35 |
36 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( | 36 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( |
37 ServiceWorkerVersion::RunningStatus running_status, | 37 ServiceWorkerVersion::RunningStatus running_status, |
38 ServiceWorkerVersion::Status status, | 38 ServiceWorkerVersion::Status status, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 waiting_version(waiting_version), | 85 waiting_version(waiting_version), |
86 installing_version(installing_version), | 86 installing_version(installing_version), |
87 stored_version_size_bytes(stored_version_size_bytes) {} | 87 stored_version_size_bytes(stored_version_size_bytes) {} |
88 | 88 |
89 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( | 89 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( |
90 const ServiceWorkerRegistrationInfo& other) = default; | 90 const ServiceWorkerRegistrationInfo& other) = default; |
91 | 91 |
92 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} | 92 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} |
93 | 93 |
94 } // namespace content | 94 } // namespace content |
OLD | NEW |