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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Message definition file, included multiple times, hence no include guard. 5 // Message definition file, included multiple times, hence no include guard.
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 int /* request_id */) 212 int /* request_id */)
213 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, 213 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished,
214 int /* request_id */, 214 int /* request_id */,
215 blink::WebServiceWorkerEventResult) 215 blink::WebServiceWorkerEventResult)
216 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, 216 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished,
217 int /* request_id */) 217 int /* request_id */)
218 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished, 218 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished,
219 int /* request_id */, 219 int /* request_id */,
220 bool /* accept_connection */) 220 bool /* accept_connection */)
221 221
222 // Responds to a Ping from the browser.
223 // Routed to the target ServiceWorkerVersion.
224 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong)
225
222 // Asks the browser to retrieve documents controlled by the sender 226 // Asks the browser to retrieve documents controlled by the sender
223 // ServiceWorker. 227 // ServiceWorker.
224 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, 228 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments,
225 int /* request_id */) 229 int /* request_id */)
226 230
227 // Sends a 'message' event to a client document (renderer->browser). 231 // Sends a 'message' event to a client document (renderer->browser).
228 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, 232 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument,
229 int /* client_id */, 233 int /* client_id */,
230 base::string16 /* message */, 234 base::string16 /* message */,
231 std::vector<int> /* sent_message_port_ids */) 235 std::vector<int> /* sent_message_port_ids */)
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 std::vector<int> /* new_routing_ids */) 458 std::vector<int> /* new_routing_ids */)
455 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, 459 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting,
456 int /* request_id */) 460 int /* request_id */)
457 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, 461 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
458 int /* request_id */) 462 int /* request_id */)
459 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, 463 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
460 int /* request_id */, 464 int /* request_id */,
461 blink::WebServiceWorkerError::ErrorType /* code */, 465 blink::WebServiceWorkerError::ErrorType /* code */,
462 base::string16 /* message */) 466 base::string16 /* message */)
463 467
468 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response.
469 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping)
470
464 // Sent via EmbeddedWorker as a response of GetClientDocuments. 471 // Sent via EmbeddedWorker as a response of GetClientDocuments.
465 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, 472 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments,
466 int /* request_id */, 473 int /* request_id */,
467 std::vector<content::ServiceWorkerClientInfo>) 474 std::vector<content::ServiceWorkerClientInfo>)
468 475
469 // Sent via EmbeddedWorker as a response of OpenWindow. 476 // Sent via EmbeddedWorker as a response of OpenWindow.
470 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, 477 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse,
471 int /* request_id */, 478 int /* request_id */,
472 content::ServiceWorkerClientInfo /* client */) 479 content::ServiceWorkerClientInfo /* client */)
473 480
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 blink::WebServiceWorkerCacheError) 539 blink::WebServiceWorkerCacheError)
533 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 540 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
534 int /* request_id */, 541 int /* request_id */,
535 blink::WebServiceWorkerCacheError) 542 blink::WebServiceWorkerCacheError)
536 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 543 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
537 int /* request_id */, 544 int /* request_id */,
538 blink::WebServiceWorkerCacheError) 545 blink::WebServiceWorkerCacheError)
539 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 546 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
540 int /* request_id */, 547 int /* request_id */,
541 blink::WebServiceWorkerCacheError) 548 blink::WebServiceWorkerCacheError)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698