| 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 #ifndef REMOTING_HOST_CHROMOTING_MESSAGES_H_ | 5 #ifndef REMOTING_HOST_CHROMOTING_MESSAGES_H_ |
| 6 #define REMOTING_HOST_CHROMOTING_MESSAGES_H_ | 6 #define REMOTING_HOST_CHROMOTING_MESSAGES_H_ |
| 7 | 7 |
| 8 #include "ipc/ipc_platform_file.h" | 8 #include "ipc/ipc_platform_file.h" |
| 9 #include "media/video/capture/screen/mouse_cursor_shape.h" | 9 #include "media/video/capture/screen/mouse_cursor_shape.h" |
| 10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
| 11 #include "remoting/protocol/transport.h" | 11 #include "remoting/protocol/transport.h" |
| 12 #include "third_party/skia/include/core/SkPoint.h" | 12 #include "third_party/skia/include/core/SkPoint.h" |
| 13 #include "third_party/skia/include/core/SkRect.h" | 13 #include "third_party/skia/include/core/SkRect.h" |
| 14 #include "third_party/skia/include/core/SkSize.h" | 14 #include "third_party/skia/include/core/SkSize.h" |
| 15 | 15 |
| 16 #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_ | 16 #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_ |
| 17 | 17 |
| 18 // Multiply-included message file, no traditional include guard. | 18 // Multiply-included message file, no traditional include guard. |
| 19 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
| 20 | 20 |
| 21 #define IPC_MESSAGE_START ChromotingMsgStart | 21 #define IPC_MESSAGE_START ChromotingMsgStart |
| 22 | 22 |
| 23 //----------------------------------------------------------------------------- | 23 //----------------------------------------------------------------------------- |
| 24 // Chromoting messages sent from the daemon. |
| 25 |
| 26 // Requests the receiving process to crash producing a crash dump. The daemon |
| 27 // sends this message when a fatal error has been detected indicating that |
| 28 // the receiving process misbehaves. The daemon passes the location of the code |
| 29 // that detected the error. |
| 30 IPC_MESSAGE_CONTROL3(ChromotingDaemonMsg_Crash, |
| 31 std::string /* function_name */, |
| 32 std::string /* file_name */, |
| 33 int /* line_number */) |
| 34 |
| 35 //----------------------------------------------------------------------------- |
| 24 // Chromoting messages sent from the daemon to the network process. | 36 // Chromoting messages sent from the daemon to the network process. |
| 25 | 37 |
| 26 // Requests the network process to crash producing a crash dump. The daemon | |
| 27 // sends this message when a fatal error has been detected indicating that | |
| 28 // the network process misbehaves. The daemon passes the location of the code | |
| 29 // that detected the error. | |
| 30 IPC_MESSAGE_CONTROL3(ChromotingDaemonNetworkMsg_Crash, | |
| 31 std::string /* function_name */, | |
| 32 std::string /* file_name */, | |
| 33 int /* line_number */) | |
| 34 | |
| 35 // Delivers the host configuration (and updates) to the network process. | 38 // Delivers the host configuration (and updates) to the network process. |
| 36 IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_Configuration, std::string) | 39 IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_Configuration, std::string) |
| 37 | 40 |
| 38 // Notifies the network process that the terminal |terminal_id| has been | 41 // Notifies the network process that the terminal |terminal_id| has been |
| 39 // disconnected from the desktop session. | 42 // disconnected from the desktop session. |
| 40 IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_TerminalDisconnected, | 43 IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_TerminalDisconnected, |
| 41 int /* terminal_id */) | 44 int /* terminal_id */) |
| 42 | 45 |
| 43 // Notifies the network process that |terminal_id| is now attached to | 46 // Notifies the network process that |terminal_id| is now attached to |
| 44 // a desktop integration process. |desktop_process| is the handle of the desktop | 47 // a desktop integration process. |desktop_process| is the handle of the desktop |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 std::string /* jid */, | 100 std::string /* jid */, |
| 98 std::string /* channel_name */, | 101 std::string /* channel_name */, |
| 99 SerializedTransportRoute /* route */) | 102 SerializedTransportRoute /* route */) |
| 100 | 103 |
| 101 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_HostStarted, | 104 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_HostStarted, |
| 102 std::string /* xmpp_login */) | 105 std::string /* xmpp_login */) |
| 103 | 106 |
| 104 IPC_MESSAGE_CONTROL0(ChromotingNetworkDaemonMsg_HostShutdown) | 107 IPC_MESSAGE_CONTROL0(ChromotingNetworkDaemonMsg_HostShutdown) |
| 105 | 108 |
| 106 //----------------------------------------------------------------------------- | 109 //----------------------------------------------------------------------------- |
| 107 // Chromoting messages sent from the daemon to the desktop process. | |
| 108 | |
| 109 // Requests the desktop process to crash producing a crash dump. The daemon | |
| 110 // sends this message when a fatal error has been detected indicating that | |
| 111 // the desktop process misbehaves. The daemon passes the location of the code | |
| 112 // that detected the error. | |
| 113 IPC_MESSAGE_CONTROL3(ChromotingDaemonDesktopMsg_Crash, | |
| 114 std::string /* function_name */, | |
| 115 std::string /* file_name */, | |
| 116 int /* line_number */) | |
| 117 | |
| 118 //----------------------------------------------------------------------------- | |
| 119 // Chromoting messages sent from the desktop to the daemon process. | 110 // Chromoting messages sent from the desktop to the daemon process. |
| 120 | 111 |
| 121 // Notifies the daemon that a desktop integration process has been initialized. | 112 // Notifies the daemon that a desktop integration process has been initialized. |
| 122 // |desktop_pipe| specifies the client end of the desktop pipe. It is to be | 113 // |desktop_pipe| specifies the client end of the desktop pipe. It is to be |
| 123 // forwarded to the desktop environment stub. | 114 // forwarded to the desktop environment stub. |
| 124 // | 115 // |
| 125 // Windows only: |desktop_pipe| has to be duplicated from the desktop process by | 116 // Windows only: |desktop_pipe| has to be duplicated from the desktop process by |
| 126 // the receiver of the message. | 117 // the receiver of the message. |
| 127 IPC_MESSAGE_CONTROL1(ChromotingDesktopDaemonMsg_DesktopAttached, | 118 IPC_MESSAGE_CONTROL1(ChromotingDesktopDaemonMsg_DesktopAttached, |
| 128 IPC::PlatformFileForTransit /* desktop_pipe */) | 119 IPC::PlatformFileForTransit /* desktop_pipe */) |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 231 |
| 241 // Carries a keyboard event from the client to the desktop session agent. | 232 // Carries a keyboard event from the client to the desktop session agent. |
| 242 // |serialized_event| is a serialized protocol::KeyEvent. | 233 // |serialized_event| is a serialized protocol::KeyEvent. |
| 243 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectKeyEvent, | 234 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectKeyEvent, |
| 244 std::string /* serialized_event */ ) | 235 std::string /* serialized_event */ ) |
| 245 | 236 |
| 246 // Carries a mouse event from the client to the desktop session agent. | 237 // Carries a mouse event from the client to the desktop session agent. |
| 247 // |serialized_event| is a serialized protocol::MouseEvent. | 238 // |serialized_event| is a serialized protocol::MouseEvent. |
| 248 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectMouseEvent, | 239 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectMouseEvent, |
| 249 std::string /* serialized_event */ ) | 240 std::string /* serialized_event */ ) |
| OLD | NEW |