| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Defines IPC messages used by Chromoting components. | 5 // Defines IPC messages used by Chromoting components. |
| 6 | 6 |
| 7 // Multiply-included message file, no traditional include guard. | 7 // Multiply-included message file, no traditional include guard. |
| 8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
| 9 | 9 |
| 10 #define IPC_MESSAGE_START ChromotingMsgStart | 10 #define IPC_MESSAGE_START ChromotingMsgStart |
| 11 | 11 |
| 12 //----------------------------------------------------------------------------- | 12 //----------------------------------------------------------------------------- |
| 13 // Chromoting messages sent from the daemon to the network process. | 13 // Chromoting messages sent from the daemon to the network process. |
| 14 | 14 |
| 15 // Requests the network process to crash producing a crash dump. The daemon |
| 16 // sends this message when a fatal error has been detected indicating that |
| 17 // the network process misbehaves. The daemon passes the location of the code |
| 18 // that detected the error. |
| 19 IPC_MESSAGE_CONTROL3(ChromotingDaemonNetworkMsg_Crash, |
| 20 std::string /* function_name */, |
| 21 std::string /* file_name */, |
| 22 int /* line_number */) |
| 23 |
| 15 // Delivers the host configuration (and updates) to the network process. | 24 // Delivers the host configuration (and updates) to the network process. |
| 16 IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_Configuration, std::string) | 25 IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_Configuration, std::string) |
| 17 | 26 |
| 18 // Notifies the network process that the terminal |terminal_id| has been | 27 // Notifies the network process that the terminal |terminal_id| has been |
| 19 // disconnected from the desktop session. | 28 // disconnected from the desktop session. |
| 20 IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_TerminalDisconnected, | 29 IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_TerminalDisconnected, |
| 21 int /* terminal_id */) | 30 int /* terminal_id */) |
| 22 | 31 |
| 23 //----------------------------------------------------------------------------- | 32 //----------------------------------------------------------------------------- |
| 24 // Chromoting messages sent from the network to the daemon process. | 33 // Chromoting messages sent from the network to the daemon process. |
| 25 | 34 |
| 26 // Connects the terminal |terminal_id| (i.e. the remote client) to a desktop | 35 // Connects the terminal |terminal_id| (i.e. the remote client) to a desktop |
| 27 // session. | 36 // session. |
| 28 IPC_MESSAGE_CONTROL1(ChromotingNetworkHostMsg_ConnectTerminal, | 37 IPC_MESSAGE_CONTROL1(ChromotingNetworkHostMsg_ConnectTerminal, |
| 29 int /* terminal_id */) | 38 int /* terminal_id */) |
| 30 | 39 |
| 31 // Disconnects the terminal |terminal_id| from the desktop session it was | 40 // Disconnects the terminal |terminal_id| from the desktop session it was |
| 32 // connected to. | 41 // connected to. |
| 33 IPC_MESSAGE_CONTROL1(ChromotingNetworkHostMsg_DisconnectTerminal, | 42 IPC_MESSAGE_CONTROL1(ChromotingNetworkHostMsg_DisconnectTerminal, |
| 34 int /* terminal_id */) | 43 int /* terminal_id */) |
| OLD | NEW |