| Index: content/common/service_worker/service_worker_messages.h
|
| diff --git a/content/common/service_worker/service_worker_messages.h b/content/common/service_worker/service_worker_messages.h
|
| index 2fb5a41e9b7f7d6612aaf77cc64bc603b6a688b5..bb78ab0f697ee06eed3bf773ea08ce9e48b452a6 100644
|
| --- a/content/common/service_worker/service_worker_messages.h
|
| +++ b/content/common/service_worker/service_worker_messages.h
|
| @@ -101,6 +101,14 @@ IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes)
|
| IPC_STRUCT_TRAITS_MEMBER(active)
|
| IPC_STRUCT_TRAITS_END()
|
|
|
| +IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo)
|
| + IPC_STRUCT_TRAITS_MEMBER(client_id)
|
| + IPC_STRUCT_TRAITS_MEMBER(visibility_state)
|
| + IPC_STRUCT_TRAITS_MEMBER(focused)
|
| + IPC_STRUCT_TRAITS_MEMBER(url)
|
| + IPC_STRUCT_TRAITS_MEMBER(frame_type)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| IPC_ENUM_TRAITS_MAX_VALUE(
|
| blink::WebServiceWorkerCacheError,
|
| blink::WebServiceWorkerCacheErrorLast)
|
| @@ -214,6 +222,14 @@ IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient,
|
| int /* request_id */,
|
| int /* client_id */)
|
|
|
| +// Response to ServiceWorkerMsg_GetClientInfo.
|
| +IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClientInfoSuccess,
|
| + int /* request_id */,
|
| + content::ServiceWorkerClientInfo)
|
| +
|
| +IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError,
|
| + int /* request_id */)
|
| +
|
| // CacheStorage operations in the browser.
|
| IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas,
|
| int /* request_id */,
|
| @@ -358,6 +374,12 @@ IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument,
|
| std::vector<int> /* sent_message_port_ids */,
|
| std::vector<int> /* new_routing_ids */)
|
|
|
| +IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GetClientInfo,
|
| + int /* thread_id */,
|
| + int /* embedded_worker_id */,
|
| + int /* request_id */,
|
| + int /* provider_id */)
|
| +
|
| // Sent via EmbeddedWorker to dispatch events.
|
| IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_InstallEvent,
|
| int /* request_id */,
|
| @@ -388,7 +410,7 @@ IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker,
|
| // Sent via EmbeddedWorker as a response of GetClientDocuments.
|
| IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments,
|
| int /* request_id */,
|
| - std::vector<int> /* client_ids */)
|
| + std::vector<content::ServiceWorkerClientInfo>)
|
|
|
| // Sent via EmbeddedWorker as a response of FocusClient.
|
| IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse,
|
|
|