Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1581)

Unified Diff: content/common/service_worker/service_worker_messages.h

Issue 871853002: ServiceWorker: add ServiceWorkerClients.claim() support (2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change error type Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 32b20a0f5316ba2e9484236b01bae55266826b23..87d1c61b7bcf27abef0ae6e85e206c263e5b46b5 100644
--- a/content/common/service_worker/service_worker_messages.h
+++ b/content/common/service_worker/service_worker_messages.h
@@ -241,6 +241,10 @@ IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientInfoError,
IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting,
int /* request_id */)
+// Asks the browser to take over pages should belong to this worker.
falken 2015/01/26 08:45:13 nit: comment is vague, the browser itself doesn't
xiang 2015/01/28 05:38:35 Done.
+IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients,
+ int /* request_id */)
+
// CacheStorage operations in the browser.
IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageHas,
int /* request_id */,
@@ -435,6 +439,12 @@ IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_CrossOriginMessageToWorker,
std::vector<int> /* new_routing_ids */)
IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting,
int /* request_id */)
+IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
+ int /* request_id */)
+IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
+ int /* request_id */,
+ blink::WebServiceWorkerError::ErrorType /* code */,
+ base::string16 /* message */)
// Sent via EmbeddedWorker as a response of GetClientDocuments.
IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments,

Powered by Google App Engine
This is Rietveld 408576698