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

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

Issue 1210643002: Update navigator.services API to use the new services.onconnect event [2/3]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@serviceport
Patch Set: properly run error callbacks when worker is stopped Created 5 years, 5 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
« no previous file with comments | « content/common/service_port_service.mojom ('k') | content/content_child.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_SyncEventFinished, 231 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_SyncEventFinished,
232 int /* request_id */, 232 int /* request_id */,
233 blink::WebServiceWorkerEventResult) 233 blink::WebServiceWorkerEventResult)
234 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_NotificationClickEventFinished, 234 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_NotificationClickEventFinished,
235 int /* request_id */) 235 int /* request_id */)
236 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, 236 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished,
237 int /* request_id */, 237 int /* request_id */,
238 blink::WebServiceWorkerEventResult) 238 blink::WebServiceWorkerEventResult)
239 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, 239 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished,
240 int /* request_id */) 240 int /* request_id */)
241 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished,
242 int /* request_id */,
243 bool /* accept_connection */)
244 241
245 // Responds to a Ping from the browser. 242 // Responds to a Ping from the browser.
246 // Routed to the target ServiceWorkerVersion. 243 // Routed to the target ServiceWorkerVersion.
247 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) 244 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong)
248 245
249 // Asks the browser to retrieve clients of the sender ServiceWorker. 246 // Asks the browser to retrieve clients of the sender ServiceWorker.
250 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, 247 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients,
251 int /* request_id */, 248 int /* request_id */,
252 content::ServiceWorkerClientQueryOptions) 249 content::ServiceWorkerClientQueryOptions)
253 250
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 int64_t /* persistent_notification_id */, 429 int64_t /* persistent_notification_id */,
433 content::PlatformNotificationData /* notification_data */) 430 content::PlatformNotificationData /* notification_data */)
434 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent, 431 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_PushEvent,
435 int /* request_id */, 432 int /* request_id */,
436 std::string /* data */) 433 std::string /* data */)
437 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, 434 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent,
438 int /* request_id */, 435 int /* request_id */,
439 blink::WebGeofencingEventType /* event_type */, 436 blink::WebGeofencingEventType /* event_type */,
440 std::string /* region_id */, 437 std::string /* region_id */,
441 blink::WebCircularGeofencingRegion /* region */) 438 blink::WebCircularGeofencingRegion /* region */)
442 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CrossOriginConnectEvent,
443 int /* request_id */,
444 content::NavigatorConnectClient /* client */)
445 IPC_MESSAGE_CONTROL3( 439 IPC_MESSAGE_CONTROL3(
446 ServiceWorkerMsg_MessageToWorker, 440 ServiceWorkerMsg_MessageToWorker,
447 base::string16 /* message */, 441 base::string16 /* message */,
448 std::vector<content::TransferredMessagePort> /* sent_message_ports */, 442 std::vector<content::TransferredMessagePort> /* sent_message_ports */,
449 std::vector<int> /* new_routing_ids */) 443 std::vector<int> /* new_routing_ids */)
450 IPC_MESSAGE_CONTROL4( 444 IPC_MESSAGE_CONTROL4(
451 ServiceWorkerMsg_CrossOriginMessageToWorker, 445 ServiceWorkerMsg_CrossOriginMessageToWorker,
452 content::NavigatorConnectClient /* client */, 446 content::NavigatorConnectClient /* client */,
453 base::string16 /* message */, 447 base::string16 /* message */,
454 std::vector<content::TransferredMessagePort> /* sent_message_ports */, 448 std::vector<content::TransferredMessagePort> /* sent_message_ports */,
(...skipping 29 matching lines...) Expand all
484 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, 478 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse,
485 int /* request_id */, 479 int /* request_id */,
486 content::ServiceWorkerClientInfo /* client */) 480 content::ServiceWorkerClientInfo /* client */)
487 481
488 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. 482 // Sent via EmbeddedWorker to transfer a stashed message port to the worker.
489 IPC_MESSAGE_CONTROL3( 483 IPC_MESSAGE_CONTROL3(
490 ServiceWorkerMsg_SendStashedMessagePorts, 484 ServiceWorkerMsg_SendStashedMessagePorts,
491 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, 485 std::vector<content::TransferredMessagePort> /* stashed_message_ports */,
492 std::vector<int> /* new_routing_ids */, 486 std::vector<int> /* new_routing_ids */,
493 std::vector<base::string16> /* port_names */) 487 std::vector<base::string16> /* port_names */)
OLDNEW
« no previous file with comments | « content/common/service_port_service.mojom ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698