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