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

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: Use HTTP origins instead of HTTPS origins for layout tests 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 int /* request_id */, 248 int /* request_id */,
249 blink::WebServiceWorkerEventResult) 249 blink::WebServiceWorkerEventResult)
250 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GeofencingEventFinished, 250 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GeofencingEventFinished,
251 int /* request_id */, 251 int /* request_id */,
252 blink::WebServiceWorkerEventResult) 252 blink::WebServiceWorkerEventResult)
253 253
254 // Responds to a Ping from the browser. 254 // Responds to a Ping from the browser.
255 // Routed to the target ServiceWorkerVersion. 255 // Routed to the target ServiceWorkerVersion.
256 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) 256 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong)
257 257
258 // Asks the browser to retrieve client of the sender ServiceWorker.
259 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient,
260 int /* request_id */,
261 std::string)
nhiroki 2016/02/03 09:39:59 /* client_uuid */
jungkees 2016/02/03 14:15:07 Addressed. Thanks!
262
258 // Asks the browser to retrieve clients of the sender ServiceWorker. 263 // Asks the browser to retrieve clients of the sender ServiceWorker.
259 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, 264 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients,
260 int /* request_id */, 265 int /* request_id */,
261 content::ServiceWorkerClientQueryOptions) 266 content::ServiceWorkerClientQueryOptions)
262 267
263 // Sends a 'message' event to a client (renderer->browser). 268 // Sends a 'message' event to a client (renderer->browser).
264 IPC_MESSAGE_ROUTED3( 269 IPC_MESSAGE_ROUTED3(
265 ServiceWorkerHostMsg_PostMessageToClient, 270 ServiceWorkerHostMsg_PostMessageToClient,
266 std::string /* uuid */, 271 std::string /* uuid */,
267 base::string16 /* message */, 272 base::string16 /* message */,
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, 478 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
474 int /* request_id */) 479 int /* request_id */)
475 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, 480 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
476 int /* request_id */, 481 int /* request_id */,
477 blink::WebServiceWorkerError::ErrorType /* code */, 482 blink::WebServiceWorkerError::ErrorType /* code */,
478 base::string16 /* message */) 483 base::string16 /* message */)
479 484
480 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. 485 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response.
481 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping) 486 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping)
482 487
488 // Sent via EmbeddedWorker as a response of GetClient.
489 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClient,
490 int /* request_id */,
491 content::ServiceWorkerClientInfo)
492
483 // Sent via EmbeddedWorker as a response of GetClients. 493 // Sent via EmbeddedWorker as a response of GetClients.
484 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClients, 494 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClients,
485 int /* request_id */, 495 int /* request_id */,
486 std::vector<content::ServiceWorkerClientInfo>) 496 std::vector<content::ServiceWorkerClientInfo>)
487 497
488 // Sent via EmbeddedWorker as a response of OpenWindow. 498 // Sent via EmbeddedWorker as a response of OpenWindow.
489 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, 499 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse,
490 int /* request_id */, 500 int /* request_id */,
491 content::ServiceWorkerClientInfo /* client */) 501 content::ServiceWorkerClientInfo /* client */)
492 502
493 // Sent via EmbeddedWorker as an error response of OpenWindow. 503 // Sent via EmbeddedWorker as an error response of OpenWindow.
494 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, 504 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError,
495 int /* request_id */, 505 int /* request_id */,
496 std::string /* message */ ) 506 std::string /* message */ )
497 507
498 // Sent via EmbeddedWorker as a response of FocusClient. 508 // Sent via EmbeddedWorker as a response of FocusClient.
499 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, 509 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse,
500 int /* request_id */, 510 int /* request_id */,
501 content::ServiceWorkerClientInfo /* client */) 511 content::ServiceWorkerClientInfo /* client */)
502 512
503 // Sent via EmbeddedWorker as a response of NavigateClient. 513 // Sent via EmbeddedWorker as a response of NavigateClient.
504 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 514 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
505 int /* request_id */, 515 int /* request_id */,
506 content::ServiceWorkerClientInfo /* client */) 516 content::ServiceWorkerClientInfo /* client */)
507 517
508 // Sent via EmbeddedWorker as an error response of NavigateClient. 518 // Sent via EmbeddedWorker as an error response of NavigateClient.
509 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 519 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
510 int /* request_id */, 520 int /* request_id */,
511 GURL /* url */) 521 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698