Index: content/common/service_worker/service_worker_provider_host_info.cc |
diff --git a/content/common/service_worker/service_worker_provider_host_info.cc b/content/common/service_worker/service_worker_provider_host_info.cc |
index b4297c066870502ac6b298849a98fc863fed9587..d0caf4d0ab07bd086b6ae9562c75859773cf0e7b 100644 |
--- a/content/common/service_worker/service_worker_provider_host_info.cc |
+++ b/content/common/service_worker/service_worker_provider_host_info.cc |
@@ -19,7 +19,27 @@ ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo( |
: provider_id(other.provider_id), |
route_id(other.route_id), |
type(other.type), |
- is_parent_frame_secure(other.is_parent_frame_secure) { |
+ is_parent_frame_secure(other.is_parent_frame_secure), |
+ host_request(std::move(other.host_request)), |
+ client_ptr_info(std::move(other.client_ptr_info)) { |
+ other.provider_id = kInvalidServiceWorkerProviderId; |
+ other.route_id = MSG_ROUTING_NONE; |
+ other.type = SERVICE_WORKER_PROVIDER_UNKNOWN; |
+ other.is_parent_frame_secure = false; |
+} |
+ |
+ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo( |
+ ServiceWorkerProviderHostInfo&& other, |
+ mojom::ServiceWorkerProviderHostAssociatedRequest host_request, |
+ mojom::ServiceWorkerProviderAssociatedPtrInfo client_ptr_info) |
+ : provider_id(other.provider_id), |
+ route_id(other.route_id), |
+ type(other.type), |
+ is_parent_frame_secure(other.is_parent_frame_secure), |
+ host_request(std::move(host_request)), |
+ client_ptr_info(std::move(client_ptr_info)) { |
+ DCHECK(!other.host_request.is_pending()); |
+ DCHECK(!other.client_ptr_info.is_valid()); |
other.provider_id = kInvalidServiceWorkerProviderId; |
other.route_id = MSG_ROUTING_NONE; |
other.type = SERVICE_WORKER_PROVIDER_UNKNOWN; |