| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // Ask the browser to open a tab/window (renderer->browser). | 252 // Ask the browser to open a tab/window (renderer->browser). |
| 253 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, | 253 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, |
| 254 int /* request_id */, | 254 int /* request_id */, |
| 255 GURL /* url */) | 255 GURL /* url */) |
| 256 | 256 |
| 257 // Ask the browser to focus a client (renderer->browser). | 257 // Ask the browser to focus a client (renderer->browser). |
| 258 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, | 258 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, |
| 259 int /* request_id */, | 259 int /* request_id */, |
| 260 std::string /* uuid */) | 260 std::string /* uuid */) |
| 261 | 261 |
| 262 // Ask the browser to navigate a client (renderer->browser). |
| 263 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_NavigateClient, |
| 264 int /* request_id */, |
| 265 std::string /* uuid */, |
| 266 GURL /* url */) |
| 267 |
| 262 // Asks the browser to force this worker to become activated. | 268 // Asks the browser to force this worker to become activated. |
| 263 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, | 269 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, |
| 264 int /* request_id */) | 270 int /* request_id */) |
| 265 | 271 |
| 266 // Asks the browser to have this worker take control of pages that match | 272 // Asks the browser to have this worker take control of pages that match |
| 267 // its scope. | 273 // its scope. |
| 268 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients, | 274 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients, |
| 269 int /* request_id */) | 275 int /* request_id */) |
| 270 | 276 |
| 271 // Asks the browser to stash a message port, giving it a name. | 277 // Asks the browser to stash a message port, giving it a name. |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 // Sent via EmbeddedWorker as an error response of OpenWindow. | 470 // Sent via EmbeddedWorker as an error response of OpenWindow. |
| 465 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, | 471 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, |
| 466 int /* request_id */, | 472 int /* request_id */, |
| 467 std::string /* message */ ) | 473 std::string /* message */ ) |
| 468 | 474 |
| 469 // Sent via EmbeddedWorker as a response of FocusClient. | 475 // Sent via EmbeddedWorker as a response of FocusClient. |
| 470 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 476 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
| 471 int /* request_id */, | 477 int /* request_id */, |
| 472 content::ServiceWorkerClientInfo /* client */) | 478 content::ServiceWorkerClientInfo /* client */) |
| 473 | 479 |
| 480 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 481 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 482 int /* request_id */, |
| 483 content::ServiceWorkerClientInfo /* client */) |
| 484 |
| 474 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. | 485 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. |
| 475 IPC_MESSAGE_CONTROL3( | 486 IPC_MESSAGE_CONTROL3( |
| 476 ServiceWorkerMsg_SendStashedMessagePorts, | 487 ServiceWorkerMsg_SendStashedMessagePorts, |
| 477 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, | 488 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, |
| 478 std::vector<int> /* new_routing_ids */, | 489 std::vector<int> /* new_routing_ids */, |
| 479 std::vector<base::string16> /* port_names */) | 490 std::vector<base::string16> /* port_names */) |
| OLD | NEW |