| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/common/service_worker/service_worker_provider_host_info.h" | 5 #include "content/common/service_worker/service_worker_provider_host_info.h" |
| 6 | 6 |
| 7 #include "ipc/ipc_message.h" | |
| 8 | |
| 9 namespace content { | 7 namespace content { |
| 10 | 8 |
| 11 ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo() | 9 ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo() {} |
| 12 : provider_id(kInvalidServiceWorkerProviderId), | |
| 13 route_id(MSG_ROUTING_NONE), | |
| 14 type(SERVICE_WORKER_PROVIDER_UNKNOWN), | |
| 15 is_parent_frame_secure(false) {} | |
| 16 | 10 |
| 17 ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo( | 11 ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo( |
| 18 ServiceWorkerProviderHostInfo&& other) | 12 ServiceWorkerProviderHostInfo&& other) |
| 19 : provider_id(other.provider_id), | 13 : provider_id(other.provider_id), |
| 20 route_id(other.route_id), | 14 route_id(other.route_id), |
| 21 type(other.type), | 15 type(other.type), |
| 22 is_parent_frame_secure(other.is_parent_frame_secure) { | 16 is_parent_frame_secure(other.is_parent_frame_secure) {} |
| 23 other.provider_id = kInvalidServiceWorkerProviderId; | |
| 24 other.route_id = MSG_ROUTING_NONE; | |
| 25 other.type = SERVICE_WORKER_PROVIDER_UNKNOWN; | |
| 26 other.is_parent_frame_secure = false; | |
| 27 } | |
| 28 | 17 |
| 29 ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo( | 18 ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo( |
| 30 int provider_id, | 19 int provider_id, |
| 31 int route_id, | 20 int route_id, |
| 32 ServiceWorkerProviderType type, | 21 ServiceWorkerProviderType type, |
| 33 bool is_parent_frame_secure) | 22 bool is_parent_frame_secure) |
| 34 : provider_id(provider_id), | 23 : provider_id(provider_id), |
| 35 route_id(route_id), | 24 route_id(route_id), |
| 36 type(type), | 25 type(type), |
| 37 is_parent_frame_secure(is_parent_frame_secure) {} | 26 is_parent_frame_secure(is_parent_frame_secure) {} |
| 38 | 27 |
| 39 ServiceWorkerProviderHostInfo::~ServiceWorkerProviderHostInfo() {} | 28 ServiceWorkerProviderHostInfo::~ServiceWorkerProviderHostInfo() {} |
| 40 | 29 |
| 41 } // namespace content | 30 } // namespace content |
| OLD | NEW |