This is to mojofy IPCs sent from a SW instance running in the renderer process to the corresponding SWVersion instance in the browser process.
Put into third_party/WebKit/public/platform/modules/serviceworker/service_worker.mojom:
'
interface ServiceWorkerHost {
GetClient();
GetClients();
OpenNewTab();
OpenNewPopup();
SetCachedMetadata();
ClearCachedMetadata();
PostMessageToClient();
FocusClient();
NavigateClient();
SkipWaiting();
ClaimClients();
};
'
To mojofy these legacy IPCs:
ServiceWorkerHostMsg_GetClient
ServiceWorkerHostMsg_GetClients
ServiceWorkerHostMsg_OpenNewTab
ServiceWorkerHostMsg_OpenNewPopup
ServiceWorkerHostMsg_SetCachedMetadata
ServiceWorkerHostMsg_ClearCachedMetadata
ServiceWorkerHostMsg_PostMessageToClient
ServiceWorkerHostMsg_FocusClient
ServiceWorkerHostMsg_NavigateClient
ServiceWorkerHostMsg_SkipWaiting
ServiceWorkerHostMsg_ClaimClients
Comment 1 by xiaofeng...@intel.com
, Nov 3 2017