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

Side by Side Diff: content/common/service_worker/service_worker_messages.h

Issue 1439333002: Service Worker: Add Clients.get(id) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary condition Created 4 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 int /* request_id */, 268 int /* request_id */,
269 blink::WebServiceWorkerEventResult) 269 blink::WebServiceWorkerEventResult)
270 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GeofencingEventFinished, 270 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GeofencingEventFinished,
271 int /* request_id */, 271 int /* request_id */,
272 blink::WebServiceWorkerEventResult) 272 blink::WebServiceWorkerEventResult)
273 273
274 // Responds to a Ping from the browser. 274 // Responds to a Ping from the browser.
275 // Routed to the target ServiceWorkerVersion. 275 // Routed to the target ServiceWorkerVersion.
276 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) 276 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong)
277 277
278 // Asks the browser to retrieve client of the sender ServiceWorker.
279 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient,
280 int /* request_id */,
281 std::string /* client_uuid */)
282
278 // Asks the browser to retrieve clients of the sender ServiceWorker. 283 // Asks the browser to retrieve clients of the sender ServiceWorker.
279 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, 284 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients,
280 int /* request_id */, 285 int /* request_id */,
281 content::ServiceWorkerClientQueryOptions) 286 content::ServiceWorkerClientQueryOptions)
282 287
283 // Sends MessageEvent to a client (renderer->browser). 288 // Sends MessageEvent to a client (renderer->browser).
284 IPC_MESSAGE_ROUTED3( 289 IPC_MESSAGE_ROUTED3(
285 ServiceWorkerHostMsg_PostMessageToClient, 290 ServiceWorkerHostMsg_PostMessageToClient,
286 std::string /* uuid */, 291 std::string /* uuid */,
287 base::string16 /* message */, 292 base::string16 /* message */,
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, 513 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
509 int /* request_id */) 514 int /* request_id */)
510 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, 515 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
511 int /* request_id */, 516 int /* request_id */,
512 blink::WebServiceWorkerError::ErrorType /* code */, 517 blink::WebServiceWorkerError::ErrorType /* code */,
513 base::string16 /* message */) 518 base::string16 /* message */)
514 519
515 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. 520 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response.
516 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping) 521 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping)
517 522
523 // Sent via EmbeddedWorker as a response of GetClient.
524 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClient,
525 int /* request_id */,
526 content::ServiceWorkerClientInfo)
527
518 // Sent via EmbeddedWorker as a response of GetClients. 528 // Sent via EmbeddedWorker as a response of GetClients.
519 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClients, 529 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClients,
520 int /* request_id */, 530 int /* request_id */,
521 std::vector<content::ServiceWorkerClientInfo>) 531 std::vector<content::ServiceWorkerClientInfo>)
522 532
523 // Sent via EmbeddedWorker as a response of OpenWindow. 533 // Sent via EmbeddedWorker as a response of OpenWindow.
524 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, 534 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse,
525 int /* request_id */, 535 int /* request_id */,
526 content::ServiceWorkerClientInfo /* client */) 536 content::ServiceWorkerClientInfo /* client */)
527 537
528 // Sent via EmbeddedWorker as an error response of OpenWindow. 538 // Sent via EmbeddedWorker as an error response of OpenWindow.
529 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, 539 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError,
530 int /* request_id */, 540 int /* request_id */,
531 std::string /* message */ ) 541 std::string /* message */ )
532 542
533 // Sent via EmbeddedWorker as a response of FocusClient. 543 // Sent via EmbeddedWorker as a response of FocusClient.
534 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, 544 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse,
535 int /* request_id */, 545 int /* request_id */,
536 content::ServiceWorkerClientInfo /* client */) 546 content::ServiceWorkerClientInfo /* client */)
537 547
538 // Sent via EmbeddedWorker as a response of NavigateClient. 548 // Sent via EmbeddedWorker as a response of NavigateClient.
539 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 549 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
540 int /* request_id */, 550 int /* request_id */,
541 content::ServiceWorkerClientInfo /* client */) 551 content::ServiceWorkerClientInfo /* client */)
542 552
543 // Sent via EmbeddedWorker as an error response of NavigateClient. 553 // Sent via EmbeddedWorker as an error response of NavigateClient.
544 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 554 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
545 int /* request_id */, 555 int /* request_id */,
546 GURL /* url */) 556 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698