Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: content/common/service_worker/service_worker_provider_host_info.cc

Issue 2653493009: Add two interfaces for ServiceWorkerProviderContext/ProviderHost (Closed)
Patch Set: Skip unittest for CrossSiteTransfer when PlzNavigate Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 d1cc98aeaadf34b029537b2ff56079e96c8cf749..23ac817c7c0aa2d445b99bd095cf6a9c354a4b90 100644
--- a/content/common/service_worker/service_worker_provider_host_info.cc
+++ b/content/common/service_worker/service_worker_provider_host_info.cc
@@ -30,7 +30,24 @@ 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)) {
+ SetDefaultValues(&other);
+}
+
+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());
SetDefaultValues(&other);
}

Powered by Google App Engine
This is Rietveld 408576698