| 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/browser/service_worker/embedded_worker_status.h" | 7 #include "content/browser/service_worker/embedded_worker_status.h" |
| 8 #include "content/common/service_worker/service_worker_types.h" | 8 #include "content/common/service_worker/service_worker_types.h" |
| 9 #include "content/public/common/child_process_host.h" | 9 #include "content/public/common/child_process_host.h" |
| 10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 ServiceWorkerProviderType type) | 21 ServiceWorkerProviderType type) |
| 22 : process_id(process_id), route_id(route_id), type(type) { | 22 : process_id(process_id), route_id(route_id), type(type) { |
| 23 } | 23 } |
| 24 | 24 |
| 25 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() { | 25 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() { |
| 26 } | 26 } |
| 27 | 27 |
| 28 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() | 28 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() |
| 29 : running_status(EmbeddedWorkerStatus::STOPPED), | 29 : running_status(EmbeddedWorkerStatus::STOPPED), |
| 30 status(ServiceWorkerVersion::NEW), | 30 status(ServiceWorkerVersion::NEW), |
| 31 fetch_handler_existence( |
| 32 ServiceWorkerVersion::FetchHandlerExistence::UNKNOWN), |
| 31 registration_id(kInvalidServiceWorkerRegistrationId), | 33 registration_id(kInvalidServiceWorkerRegistrationId), |
| 32 version_id(kInvalidServiceWorkerVersionId), | 34 version_id(kInvalidServiceWorkerVersionId), |
| 33 process_id(ChildProcessHost::kInvalidUniqueID), | 35 process_id(ChildProcessHost::kInvalidUniqueID), |
| 34 thread_id(kInvalidEmbeddedWorkerThreadId), | 36 thread_id(kInvalidEmbeddedWorkerThreadId), |
| 35 devtools_agent_route_id(MSG_ROUTING_NONE) {} | 37 devtools_agent_route_id(MSG_ROUTING_NONE) {} |
| 36 | 38 |
| 37 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( | 39 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( |
| 38 EmbeddedWorkerStatus running_status, | 40 EmbeddedWorkerStatus running_status, |
| 39 ServiceWorkerVersion::Status status, | 41 ServiceWorkerVersion::Status status, |
| 42 ServiceWorkerVersion::FetchHandlerExistence fetch_handler_existence, |
| 40 const GURL& script_url, | 43 const GURL& script_url, |
| 41 int64_t registration_id, | 44 int64_t registration_id, |
| 42 int64_t version_id, | 45 int64_t version_id, |
| 43 int process_id, | 46 int process_id, |
| 44 int thread_id, | 47 int thread_id, |
| 45 int devtools_agent_route_id) | 48 int devtools_agent_route_id) |
| 46 : running_status(running_status), | 49 : running_status(running_status), |
| 47 status(status), | 50 status(status), |
| 51 fetch_handler_existence(fetch_handler_existence), |
| 48 script_url(script_url), | 52 script_url(script_url), |
| 49 registration_id(registration_id), | 53 registration_id(registration_id), |
| 50 version_id(version_id), | 54 version_id(version_id), |
| 51 process_id(process_id), | 55 process_id(process_id), |
| 52 thread_id(thread_id), | 56 thread_id(thread_id), |
| 53 devtools_agent_route_id(devtools_agent_route_id) {} | 57 devtools_agent_route_id(devtools_agent_route_id) {} |
| 54 | 58 |
| 55 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( | 59 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( |
| 56 const ServiceWorkerVersionInfo& other) = default; | 60 const ServiceWorkerVersionInfo& other) = default; |
| 57 | 61 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 86 waiting_version(waiting_version), | 90 waiting_version(waiting_version), |
| 87 installing_version(installing_version), | 91 installing_version(installing_version), |
| 88 stored_version_size_bytes(stored_version_size_bytes) {} | 92 stored_version_size_bytes(stored_version_size_bytes) {} |
| 89 | 93 |
| 90 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( | 94 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( |
| 91 const ServiceWorkerRegistrationInfo& other) = default; | 95 const ServiceWorkerRegistrationInfo& other) = default; |
| 92 | 96 |
| 93 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} | 97 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} |
| 94 | 98 |
| 95 } // namespace content | 99 } // namespace content |
| OLD | NEW |