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

Unified Diff: content/common/service_worker/service_worker_provider_struct_traits.h

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_struct_traits.h
diff --git a/content/common/service_worker/service_worker_provider_struct_traits.h b/content/common/service_worker/service_worker_provider_struct_traits.h
index e8cff4489863a3888cde974be2c1b58e6f822972..bdab91f37796e2eae4973d38d8f28595a6779078 100644
--- a/content/common/service_worker/service_worker_provider_struct_traits.h
+++ b/content/common/service_worker/service_worker_provider_struct_traits.h
@@ -31,6 +31,16 @@ struct StructTraits<content::mojom::ServiceWorkerProviderHostInfoDataView,
return info.is_parent_frame_secure;
}
+ static content::mojom::ServiceWorkerProviderHostAssociatedRequest&
+ host_request(content::ServiceWorkerProviderHostInfo& info) {
+ return info.host_request;
+ }
+
+ static content::mojom::ServiceWorkerProviderAssociatedPtrInfo&
+ client_ptr_info(content::ServiceWorkerProviderHostInfo& info) {
+ return info.client_ptr_info;
+ }
+
static bool Read(content::mojom::ServiceWorkerProviderHostInfoDataView in,
content::ServiceWorkerProviderHostInfo* out);
};

Powered by Google App Engine
This is Rietveld 408576698