| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // Ask the browser to open a tab/window (renderer->browser). | 268 // Ask the browser to open a tab/window (renderer->browser). |
| 269 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, | 269 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, |
| 270 int /* request_id */, | 270 int /* request_id */, |
| 271 GURL /* url */) | 271 GURL /* url */) |
| 272 | 272 |
| 273 // Ask the browser to focus a client (renderer->browser). | 273 // Ask the browser to focus a client (renderer->browser). |
| 274 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, | 274 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, |
| 275 int /* request_id */, | 275 int /* request_id */, |
| 276 std::string /* uuid */) | 276 std::string /* uuid */) |
| 277 | 277 |
| 278 // Ask the browser to navigate a client (renderer->browser). |
| 279 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_NavigateClient, |
| 280 int /* request_id */, |
| 281 std::string /* uuid */, |
| 282 GURL /* url */) |
| 283 |
| 278 // Asks the browser to force this worker to become activated. | 284 // Asks the browser to force this worker to become activated. |
| 279 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, | 285 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, |
| 280 int /* request_id */) | 286 int /* request_id */) |
| 281 | 287 |
| 282 // Asks the browser to have this worker take control of pages that match | 288 // Asks the browser to have this worker take control of pages that match |
| 283 // its scope. | 289 // its scope. |
| 284 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients, | 290 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients, |
| 285 int /* request_id */) | 291 int /* request_id */) |
| 286 | 292 |
| 287 // Asks the browser to stash a message port, giving it a name. | 293 // Asks the browser to stash a message port, giving it a name. |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 // Sent via EmbeddedWorker as an error response of OpenWindow. | 478 // Sent via EmbeddedWorker as an error response of OpenWindow. |
| 473 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, | 479 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, |
| 474 int /* request_id */, | 480 int /* request_id */, |
| 475 std::string /* message */ ) | 481 std::string /* message */ ) |
| 476 | 482 |
| 477 // Sent via EmbeddedWorker as a response of FocusClient. | 483 // Sent via EmbeddedWorker as a response of FocusClient. |
| 478 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 484 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
| 479 int /* request_id */, | 485 int /* request_id */, |
| 480 content::ServiceWorkerClientInfo /* client */) | 486 content::ServiceWorkerClientInfo /* client */) |
| 481 | 487 |
| 488 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 489 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 490 int /* request_id */, |
| 491 content::ServiceWorkerClientInfo /* client */) |
| 492 |
| 493 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 494 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 495 int /* request_id */, |
| 496 GURL /* url */) |
| 497 |
| 482 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. | 498 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. |
| 483 IPC_MESSAGE_CONTROL3( | 499 IPC_MESSAGE_CONTROL3( |
| 484 ServiceWorkerMsg_SendStashedMessagePorts, | 500 ServiceWorkerMsg_SendStashedMessagePorts, |
| 485 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, | 501 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, |
| 486 std::vector<int> /* new_routing_ids */, | 502 std::vector<int> /* new_routing_ids */, |
| 487 std::vector<base::string16> /* port_names */) | 503 std::vector<base::string16> /* port_names */) |
| OLD | NEW |