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

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

Issue 912753002: Stop Service Workers that execute JavaScript for too long. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rethink Created 5 years, 10 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 31b5281b4457333db21882feb7c8b28340cf14c3..0acdfe9b756fb91b0ae46b6947342c67f6b0a647 100644
--- a/content/common/service_worker/service_worker_messages.h
+++ b/content/common/service_worker/service_worker_messages.h
@@ -219,6 +219,10 @@ IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished,
int /* request_id */,
bool /* accept_connection */)
+// Responds to a Ping from the browser.
+// Routed to the target ServiceWorkerVersion.
+IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong)
+
// Asks the browser to retrieve documents controlled by the sender
// ServiceWorker.
IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments,
@@ -461,6 +465,9 @@ IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
blink::WebServiceWorkerError::ErrorType /* code */,
base::string16 /* message */)
+// Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response.
+IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping)
+
// Sent via EmbeddedWorker as a response of GetClientDocuments.
IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments,
int /* request_id */,

Powered by Google App Engine
This is Rietveld 408576698