OLD | NEW |
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 // Asks the browser to force this worker to become activated. | 251 // Asks the browser to force this worker to become activated. |
252 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, | 252 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, |
253 int /* request_id */) | 253 int /* request_id */) |
254 | 254 |
255 // Asks the browser to have this worker take control of pages that match | 255 // Asks the browser to have this worker take control of pages that match |
256 // its scope. | 256 // its scope. |
257 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients, | 257 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients, |
258 int /* request_id */) | 258 int /* request_id */) |
259 | 259 |
| 260 // Asks the browser to stash a message port, giving it a name. |
| 261 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_StashMessagePort, |
| 262 int /* message_port_id */, |
| 263 base::string16 /* name */) |
| 264 |
260 //--------------------------------------------------------------------------- | 265 //--------------------------------------------------------------------------- |
261 // Messages sent from the browser to the child process. | 266 // Messages sent from the browser to the child process. |
262 // | 267 // |
263 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have | 268 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have |
264 // a thread_id as their first field so that ServiceWorkerMessageFilter can | 269 // a thread_id as their first field so that ServiceWorkerMessageFilter can |
265 // extract it and dispatch the message to the correct ServiceWorkerDispatcher | 270 // extract it and dispatch the message to the correct ServiceWorkerDispatcher |
266 // on the correct thread. | 271 // on the correct thread. |
267 | 272 |
268 // Informs the child process of the registration associated with the service | 273 // Informs the child process of the registration associated with the service |
269 // worker. | 274 // worker. |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 | 437 |
433 // Sent via EmbeddedWorker as an error response of OpenWindow. | 438 // Sent via EmbeddedWorker as an error response of OpenWindow. |
434 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, | 439 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, |
435 int /* request_id */, | 440 int /* request_id */, |
436 std::string /* message */ ) | 441 std::string /* message */ ) |
437 | 442 |
438 // Sent via EmbeddedWorker as a response of FocusClient. | 443 // Sent via EmbeddedWorker as a response of FocusClient. |
439 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 444 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
440 int /* request_id */, | 445 int /* request_id */, |
441 content::ServiceWorkerClientInfo /* client */) | 446 content::ServiceWorkerClientInfo /* client */) |
| 447 |
| 448 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. |
| 449 IPC_MESSAGE_CONTROL3( |
| 450 ServiceWorkerMsg_SendStashedMessagePorts, |
| 451 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, |
| 452 std::vector<int> /* new_routing_ids */, |
| 453 std::vector<base::string16> /* port_names */) |
OLD | NEW |