| 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 ce46cf8557fe727233d9ae7959cf8b10d2fa2f42..cb36b00e2fba33e2de6e8b370356e4bab5ddde6d 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,
|
| @@ -45,6 +50,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);
|
| };
|
|
|