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

Unified Diff: content/common/service_worker/service_worker_provider_host_info.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_host_info.h
diff --git a/content/common/service_worker/service_worker_provider_host_info.h b/content/common/service_worker/service_worker_provider_host_info.h
index b89e2cdfac2a76b7edfc1bb5b21e77551541e015..e4418fa9776c7d05d45e9f7470838104addbd278 100644
--- a/content/common/service_worker/service_worker_provider_host_info.h
+++ b/content/common/service_worker/service_worker_provider_host_info.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_
#define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_
+#include "content/common/service_worker/service_worker_provider_interfaces.mojom.h"
#include "content/common/service_worker/service_worker_types.h"
namespace content {
@@ -13,6 +14,10 @@ namespace content {
struct CONTENT_EXPORT ServiceWorkerProviderHostInfo {
ServiceWorkerProviderHostInfo();
ServiceWorkerProviderHostInfo(ServiceWorkerProviderHostInfo&& other);
+ ServiceWorkerProviderHostInfo(
+ ServiceWorkerProviderHostInfo&& other,
+ mojom::ServiceWorkerProviderHostAssociatedRequest host_request,
+ mojom::ServiceWorkerProviderAssociatedPtrInfo client_ptr_info);
ServiceWorkerProviderHostInfo(int provider_id,
int route_id,
ServiceWorkerProviderType type,
@@ -48,6 +53,19 @@ struct CONTENT_EXPORT ServiceWorkerProviderHostInfo {
// is_parent_frame_secure| is true.
bool is_parent_frame_secure;
+ // Mojo endpoint to send a message from the renderer to the browser. This
+ // will be associated with ServiceWorkerDisptacherHost. |host_request| should
+ // be valid when ServiceWorkerProviderHostInfo is passed to any Mojo methods.
+ // After used to create the ServiceWorkerProviderHost, this will be invalid.
+ mojom::ServiceWorkerProviderHostAssociatedRequest host_request;
+
+ // Mojo endpoint to send a message from the browser to the renderer. This
+ // will be associated with ServiceWorkerDisptacherHost. |client_ptr_info|
+ // should be valid when ServiceWorkerProviderHostInfo is passed to any Mojo
+ // methods.
+ // After used to create the ServiceWorkerProviderHost, this will be invalid.
+ mojom::ServiceWorkerProviderAssociatedPtrInfo client_ptr_info;
+
private:
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHostInfo);
};

Powered by Google App Engine
This is Rietveld 408576698