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..09eb5cbd9d0506d6c05e54c0bf56a3ad109cf2c9 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 */, |
@@ -196,6 +202,13 @@ 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 */, |