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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/memory/shared_memory_handle.h" | 10 #include "base/memory/shared_memory_handle.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 IPC_MESSAGE_CONTROL1(ChromotingNetworkHostMsg_DisconnectTerminal, | 80 IPC_MESSAGE_CONTROL1(ChromotingNetworkHostMsg_DisconnectTerminal, |
81 int /* terminal_id */) | 81 int /* terminal_id */) |
82 | 82 |
83 // Changes the screen resolution in the given desktop session. | 83 // Changes the screen resolution in the given desktop session. |
84 IPC_MESSAGE_CONTROL2(ChromotingNetworkDaemonMsg_SetScreenResolution, | 84 IPC_MESSAGE_CONTROL2(ChromotingNetworkDaemonMsg_SetScreenResolution, |
85 int /* terminal_id */, | 85 int /* terminal_id */, |
86 remoting::ScreenResolution /* resolution */) | 86 remoting::ScreenResolution /* resolution */) |
87 | 87 |
88 // Serialized remoting::protocol::TransportRoute structure. | 88 // Serialized remoting::protocol::TransportRoute structure. |
89 IPC_STRUCT_BEGIN(SerializedTransportRoute) | 89 IPC_STRUCT_BEGIN(SerializedTransportRoute) |
90 IPC_STRUCT_MEMBER(int, type) | 90 IPC_STRUCT_MEMBER(remoting::protocol::TransportRoute::RouteType, type) |
91 IPC_STRUCT_MEMBER(net::IPAddressNumber, remote_address) | 91 IPC_STRUCT_MEMBER(net::IPEndPoint, remote_address) |
92 IPC_STRUCT_MEMBER(uint16_t, remote_port) | 92 IPC_STRUCT_MEMBER(net::IPEndPoint, local_address) |
93 IPC_STRUCT_MEMBER(net::IPAddressNumber, local_address) | |
94 IPC_STRUCT_MEMBER(uint16_t, local_port) | |
95 IPC_STRUCT_END() | 93 IPC_STRUCT_END() |
96 | 94 |
| 95 IPC_ENUM_TRAITS_MAX_VALUE(remoting::protocol::TransportRoute::RouteType, |
| 96 remoting::protocol::TransportRoute::ROUTE_TYPE_MAX) |
| 97 |
97 // Hosts status notifications (see HostStatusObserver interface) sent by | 98 // Hosts status notifications (see HostStatusObserver interface) sent by |
98 // IpcHostEventLogger. | 99 // IpcHostEventLogger. |
99 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_AccessDenied, | 100 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_AccessDenied, |
100 std::string /* jid */) | 101 std::string /* jid */) |
101 | 102 |
102 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_ClientAuthenticated, | 103 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_ClientAuthenticated, |
103 std::string /* jid */) | 104 std::string /* jid */) |
104 | 105 |
105 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_ClientConnected, | 106 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_ClientConnected, |
106 std::string /* jid */) | 107 std::string /* jid */) |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // request and response messages. It is destroyed once the client disconnects. | 262 // request and response messages. It is destroyed once the client disconnects. |
262 | 263 |
263 // The IPC channel path for this remote_security_key connection. This message | 264 // The IPC channel path for this remote_security_key connection. This message |
264 // is sent from the well-known IPC server channel. | 265 // is sent from the well-known IPC server channel. |
265 IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionDetails, | 266 IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionDetails, |
266 std::string /* IPC Server path */) | 267 std::string /* IPC Server path */) |
267 | 268 |
268 // The array of bytes representing a security key response from the remote | 269 // The array of bytes representing a security key response from the remote |
269 // client. This message is sent over the per-client IPC channel. | 270 // client. This message is sent over the per-client IPC channel. |
270 IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_Response, | 271 IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_Response, |
271 std::string /* response bytes */) | 272 std::string /* response bytes */) |
OLD | NEW |