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

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

Issue 1877283002: ServiceWorker: Remove unused MessageEvent implementation from ServiceWorkerGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 // Sends ExtendableMessageEvent to a service worker (renderer->browser). 194 // Sends ExtendableMessageEvent to a service worker (renderer->browser).
195 IPC_MESSAGE_CONTROL5( 195 IPC_MESSAGE_CONTROL5(
196 ServiceWorkerHostMsg_PostMessageToWorker, 196 ServiceWorkerHostMsg_PostMessageToWorker,
197 int /* handle_id */, 197 int /* handle_id */,
198 int /* provider_id */, 198 int /* provider_id */,
199 base::string16 /* message */, 199 base::string16 /* message */,
200 url::Origin /* source_origin */, 200 url::Origin /* source_origin */,
201 std::vector<content::TransferredMessagePort> /* sent_message_ports */) 201 std::vector<content::TransferredMessagePort> /* sent_message_ports */)
202 202
203 // Sends MessageEvent to a service worker (renderer->browser).
204 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by
205 // default (crbug.com/543198).
206 IPC_MESSAGE_CONTROL3(
207 ServiceWorkerHostMsg_DeprecatedPostMessageToWorker,
208 int /* handle_id */,
209 base::string16 /* message */,
210 std::vector<content::TransferredMessagePort> /* sent_message_ports */)
211
212 // Informs the browser of a new ServiceWorkerProvider in the child process, 203 // Informs the browser of a new ServiceWorkerProvider in the child process,
213 // |provider_id| is unique within its child process. When this provider is 204 // |provider_id| is unique within its child process. When this provider is
214 // created for a document, |route_id| is the frame ID of it. When this provider 205 // created for a document, |route_id| is the frame ID of it. When this provider
215 // is created for a Shared Worker, |route_id| is the Shared Worker route ID. 206 // is created for a Shared Worker, |route_id| is the Shared Worker route ID.
216 // When this provider is created for a Service Worker, |route_id| is 207 // When this provider is created for a Service Worker, |route_id| is
217 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for 208 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for
218 // Service Worker controllees (documents and Shared Workers) or for controllers 209 // Service Worker controllees (documents and Shared Workers) or for controllers
219 // (Service Workers). 210 // (Service Workers).
220 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, 211 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated,
221 int /* provider_id */, 212 int /* provider_id */,
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 content::PlatformNotificationData /* notification_data */) 486 content::PlatformNotificationData /* notification_data */)
496 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent, 487 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent,
497 int /* request_id */, 488 int /* request_id */,
498 content::PushEventPayload /* data */) 489 content::PushEventPayload /* data */)
499 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, 490 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent,
500 int /* request_id */, 491 int /* request_id */,
501 blink::WebGeofencingEventType /* event_type */, 492 blink::WebGeofencingEventType /* event_type */,
502 std::string /* region_id */, 493 std::string /* region_id */,
503 blink::WebCircularGeofencingRegion /* region */) 494 blink::WebCircularGeofencingRegion /* region */)
504 495
505 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by
506 // default (crbug.com/543198).
507 IPC_MESSAGE_CONTROL3(
508 ServiceWorkerMsg_MessageToWorker,
509 base::string16 /* message */,
510 std::vector<content::TransferredMessagePort> /* sent_message_ports */,
511 std::vector<int> /* new_routing_ids */)
512
513 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, 496 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting,
514 int /* request_id */) 497 int /* request_id */)
515 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, 498 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
516 int /* request_id */) 499 int /* request_id */)
517 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, 500 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
518 int /* request_id */, 501 int /* request_id */,
519 blink::WebServiceWorkerError::ErrorType /* code */, 502 blink::WebServiceWorkerError::ErrorType /* code */,
520 base::string16 /* message */) 503 base::string16 /* message */)
521 504
522 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. 505 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response.
(...skipping 26 matching lines...) Expand all
549 532
550 // Sent via EmbeddedWorker as a response of NavigateClient. 533 // Sent via EmbeddedWorker as a response of NavigateClient.
551 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 534 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
552 int /* request_id */, 535 int /* request_id */,
553 content::ServiceWorkerClientInfo /* client */) 536 content::ServiceWorkerClientInfo /* client */)
554 537
555 // Sent via EmbeddedWorker as an error response of NavigateClient. 538 // Sent via EmbeddedWorker as an error response of NavigateClient.
556 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 539 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
557 int /* request_id */, 540 int /* request_id */,
558 GURL /* url */) 541 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698