| 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 f940d06a48eabd2335a4da61eccb50f18f30ea70..9eac506a54190116eb5c24cfa27ffbb2a84c872e 100644
|
| --- a/content/common/service_worker/service_worker_messages.h
|
| +++ b/content/common/service_worker/service_worker_messages.h
|
| @@ -90,6 +90,12 @@ IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker,
|
| int /* provider_id */,
|
| GURL /* scope (url pattern) */)
|
|
|
| +IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration,
|
| + int /* thread_id */,
|
| + int /* request_id */,
|
| + int /* provider_id */,
|
| + GURL /* document_url */)
|
| +
|
| // Sends a 'message' event to a service worker (renderer->browser).
|
| IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker,
|
| int /* handle_id */,
|
| @@ -184,18 +190,25 @@ IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_CacheStorageKeys,
|
| // extract it and dispatch the message to the correct ServiceWorkerDispatcher
|
| // on the correct thread.
|
|
|
| -// Response to ServiceWorkerMsg_RegisterServiceWorker.
|
| +// Response to ServiceWorkerHostMsg_RegisterServiceWorker.
|
| IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered,
|
| int /* thread_id */,
|
| int /* request_id */,
|
| content::ServiceWorkerRegistrationObjectInfo,
|
| content::ServiceWorkerVersionAttributes)
|
|
|
| -// Response to ServiceWorkerMsg_UnregisterServiceWorker.
|
| +// Response to ServiceWorkerHostMsg_UnregisterServiceWorker.
|
| IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
|
| int /* thread_id */,
|
| int /* request_id */)
|
|
|
| +// Response to ServiceWorkerHostMsg_GetRegistration.
|
| +IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration,
|
| + int /* thread_id */,
|
| + int /* request_id */,
|
| + content::ServiceWorkerRegistrationObjectInfo,
|
| + content::ServiceWorkerVersionAttributes)
|
| +
|
| // Sent when any kind of registration error occurs during a
|
| // RegisterServiceWorker handler above.
|
| IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
|
| @@ -212,6 +225,14 @@ IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerUnregistrationError,
|
| blink::WebServiceWorkerError::ErrorType /* code */,
|
| base::string16 /* message */)
|
|
|
| +// Sent when any kind of registration error occurs during a
|
| +// GetRegistration handler above.
|
| +IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationError,
|
| + int /* thread_id */,
|
| + int /* request_id */,
|
| + blink::WebServiceWorkerError::ErrorType /* code */,
|
| + base::string16 /* message */)
|
| +
|
| // Informs the child process that the ServiceWorker's state has changed.
|
| IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged,
|
| int /* thread_id */,
|
|
|