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

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: Move the origin check lines and update 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 int /* request_id */, 267 int /* request_id */,
268 blink::WebServiceWorkerEventResult) 268 blink::WebServiceWorkerEventResult)
269 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GeofencingEventFinished, 269 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GeofencingEventFinished,
270 int /* request_id */, 270 int /* request_id */,
271 blink::WebServiceWorkerEventResult) 271 blink::WebServiceWorkerEventResult)
272 272
273 // Responds to a Ping from the browser. 273 // Responds to a Ping from the browser.
274 // Routed to the target ServiceWorkerVersion. 274 // Routed to the target ServiceWorkerVersion.
275 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) 275 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong)
276 276
277 // Asks the browser to retrieve client of the sender ServiceWorker.
278 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient,
279 int /* request_id */,
280 std::string /* client_uuid */)
281
277 // Asks the browser to retrieve clients of the sender ServiceWorker. 282 // Asks the browser to retrieve clients of the sender ServiceWorker.
278 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, 283 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients,
279 int /* request_id */, 284 int /* request_id */,
280 content::ServiceWorkerClientQueryOptions) 285 content::ServiceWorkerClientQueryOptions)
281 286
282 // Sends MessageEvent to a client (renderer->browser). 287 // Sends MessageEvent to a client (renderer->browser).
283 IPC_MESSAGE_ROUTED3( 288 IPC_MESSAGE_ROUTED3(
284 ServiceWorkerHostMsg_PostMessageToClient, 289 ServiceWorkerHostMsg_PostMessageToClient,
285 std::string /* uuid */, 290 std::string /* uuid */,
286 base::string16 /* message */, 291 base::string16 /* message */,
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, 511 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
507 int /* request_id */) 512 int /* request_id */)
508 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, 513 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
509 int /* request_id */, 514 int /* request_id */,
510 blink::WebServiceWorkerError::ErrorType /* code */, 515 blink::WebServiceWorkerError::ErrorType /* code */,
511 base::string16 /* message */) 516 base::string16 /* message */)
512 517
513 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. 518 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response.
514 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping) 519 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping)
515 520
521 // Sent via EmbeddedWorker as a response of GetClient.
522 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClient,
523 int /* request_id */,
524 content::ServiceWorkerClientInfo)
525
516 // Sent via EmbeddedWorker as a response of GetClients. 526 // Sent via EmbeddedWorker as a response of GetClients.
517 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClients, 527 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClients,
518 int /* request_id */, 528 int /* request_id */,
519 std::vector<content::ServiceWorkerClientInfo>) 529 std::vector<content::ServiceWorkerClientInfo>)
520 530
521 // Sent via EmbeddedWorker as a response of OpenWindow. 531 // Sent via EmbeddedWorker as a response of OpenWindow.
522 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, 532 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse,
523 int /* request_id */, 533 int /* request_id */,
524 content::ServiceWorkerClientInfo /* client */) 534 content::ServiceWorkerClientInfo /* client */)
525 535
526 // Sent via EmbeddedWorker as an error response of OpenWindow. 536 // Sent via EmbeddedWorker as an error response of OpenWindow.
527 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, 537 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError,
528 int /* request_id */, 538 int /* request_id */,
529 std::string /* message */ ) 539 std::string /* message */ )
530 540
531 // Sent via EmbeddedWorker as a response of FocusClient. 541 // Sent via EmbeddedWorker as a response of FocusClient.
532 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, 542 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse,
533 int /* request_id */, 543 int /* request_id */,
534 content::ServiceWorkerClientInfo /* client */) 544 content::ServiceWorkerClientInfo /* client */)
535 545
536 // Sent via EmbeddedWorker as a response of NavigateClient. 546 // Sent via EmbeddedWorker as a response of NavigateClient.
537 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 547 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
538 int /* request_id */, 548 int /* request_id */,
539 content::ServiceWorkerClientInfo /* client */) 549 content::ServiceWorkerClientInfo /* client */)
540 550
541 // Sent via EmbeddedWorker as an error response of NavigateClient. 551 // Sent via EmbeddedWorker as an error response of NavigateClient.
542 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 552 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
543 int /* request_id */, 553 int /* request_id */,
544 GURL /* url */) 554 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698