| 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 "ipc/ipc_message.h" | 8 #include "ipc/ipc_message.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 ServiceWorkerVersionInfo::ClientInfo::ClientInfo() | 12 ServiceWorkerVersionInfo::ClientInfo::ClientInfo() |
| 13 : ClientInfo(-1, MSG_ROUTING_NONE, SERVICE_WORKER_PROVIDER_UNKNOWN) { | 13 : ClientInfo(-1, MSG_ROUTING_NONE, SERVICE_WORKER_PROVIDER_UNKNOWN) { |
| 14 } | 14 } |
| 15 | 15 |
| 16 ServiceWorkerVersionInfo::ClientInfo::ClientInfo(int process_id, | 16 ServiceWorkerVersionInfo::ClientInfo::ClientInfo(int process_id, |
| 17 int route_id, | 17 int route_id, |
| 18 ServiceWorkerProviderType type) | 18 ServiceWorkerProviderType type) |
| 19 : process_id(process_id), route_id(route_id), type(type) { | 19 : process_id(process_id), route_id(route_id), type(type) { |
| 20 } | 20 } |
| 21 | 21 |
| 22 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() { | 22 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() { |
| 23 } | 23 } |
| 24 | 24 |
| 25 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() | 25 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() |
| 26 : running_status(ServiceWorkerVersion::STOPPED), | 26 : running_status(ServiceWorkerVersion::STOPPED), |
| 27 status(ServiceWorkerVersion::NEW), | 27 status(ServiceWorkerVersion::NEW), |
| 28 registration_id(kInvalidServiceWorkerRegistrationId), | 28 registration_id(kInvalidServiceWorkerRegistrationId), |
| 29 version_id(kInvalidServiceWorkerVersionId), | 29 version_uuid(std::string()), |
| 30 process_id(-1), | 30 process_id(-1), |
| 31 thread_id(-1), | 31 thread_id(-1), |
| 32 devtools_agent_route_id(MSG_ROUTING_NONE) { | 32 devtools_agent_route_id(MSG_ROUTING_NONE) { |
| 33 } | 33 } |
| 34 | 34 |
| 35 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( | 35 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( |
| 36 ServiceWorkerVersion::RunningStatus running_status, | 36 ServiceWorkerVersion::RunningStatus running_status, |
| 37 ServiceWorkerVersion::Status status, | 37 ServiceWorkerVersion::Status status, |
| 38 const GURL& script_url, | 38 const GURL& script_url, |
| 39 int64 registration_id, | 39 int64 registration_id, |
| 40 int64 version_id, | 40 std::string version_uuid, |
| 41 int process_id, | 41 int process_id, |
| 42 int thread_id, | 42 int thread_id, |
| 43 int devtools_agent_route_id) | 43 int devtools_agent_route_id) |
| 44 : running_status(running_status), | 44 : running_status(running_status), |
| 45 status(status), | 45 status(status), |
| 46 script_url(script_url), | 46 script_url(script_url), |
| 47 registration_id(registration_id), | 47 registration_id(registration_id), |
| 48 version_id(version_id), | 48 version_uuid(version_uuid), |
| 49 process_id(process_id), | 49 process_id(process_id), |
| 50 thread_id(thread_id), | 50 thread_id(thread_id), |
| 51 devtools_agent_route_id(devtools_agent_route_id) { | 51 devtools_agent_route_id(devtools_agent_route_id) { |
| 52 } | 52 } |
| 53 | 53 |
| 54 ServiceWorkerVersionInfo::~ServiceWorkerVersionInfo() {} | 54 ServiceWorkerVersionInfo::~ServiceWorkerVersionInfo() {} |
| 55 | 55 |
| 56 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo() | 56 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo() |
| 57 : registration_id(kInvalidServiceWorkerRegistrationId), | 57 : registration_id(kInvalidServiceWorkerRegistrationId), |
| 58 delete_flag(IS_NOT_DELETED), | 58 delete_flag(IS_NOT_DELETED), |
| (...skipping 23 matching lines...) Expand all Loading... |
| 82 delete_flag(delete_flag), | 82 delete_flag(delete_flag), |
| 83 active_version(active_version), | 83 active_version(active_version), |
| 84 waiting_version(waiting_version), | 84 waiting_version(waiting_version), |
| 85 installing_version(installing_version), | 85 installing_version(installing_version), |
| 86 stored_version_size_bytes(stored_version_size_bytes) { | 86 stored_version_size_bytes(stored_version_size_bytes) { |
| 87 } | 87 } |
| 88 | 88 |
| 89 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} | 89 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} |
| 90 | 90 |
| 91 } // namespace content | 91 } // namespace content |
| OLD | NEW |