Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: remoting/host/chromoting_messages.h

Issue 655063002: Use uint16 for port numbers more pervasively. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert bad change Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "net/base/ip_endpoint.h" 9 #include "net/base/ip_endpoint.h"
10 #include "remoting/host/chromoting_param_traits.h" 10 #include "remoting/host/chromoting_param_traits.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Changes the screen resolution in the given desktop session. 80 // Changes the screen resolution in the given desktop session.
81 IPC_MESSAGE_CONTROL2(ChromotingNetworkDaemonMsg_SetScreenResolution, 81 IPC_MESSAGE_CONTROL2(ChromotingNetworkDaemonMsg_SetScreenResolution,
82 int /* terminal_id */, 82 int /* terminal_id */,
83 remoting::ScreenResolution /* resolution */) 83 remoting::ScreenResolution /* resolution */)
84 84
85 // Serialized remoting::protocol::TransportRoute structure. 85 // Serialized remoting::protocol::TransportRoute structure.
86 IPC_STRUCT_BEGIN(SerializedTransportRoute) 86 IPC_STRUCT_BEGIN(SerializedTransportRoute)
87 IPC_STRUCT_MEMBER(int, type) 87 IPC_STRUCT_MEMBER(int, type)
88 IPC_STRUCT_MEMBER(net::IPAddressNumber, remote_address) 88 IPC_STRUCT_MEMBER(net::IPAddressNumber, remote_address)
89 IPC_STRUCT_MEMBER(int, remote_port) 89 IPC_STRUCT_MEMBER(uint16, remote_port)
90 IPC_STRUCT_MEMBER(net::IPAddressNumber, local_address) 90 IPC_STRUCT_MEMBER(net::IPAddressNumber, local_address)
91 IPC_STRUCT_MEMBER(int, local_port) 91 IPC_STRUCT_MEMBER(uint16, local_port)
92 IPC_STRUCT_END() 92 IPC_STRUCT_END()
93 93
94 // Hosts status notifications (see HostStatusObserver interface) sent by 94 // Hosts status notifications (see HostStatusObserver interface) sent by
95 // IpcHostEventLogger. 95 // IpcHostEventLogger.
96 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_AccessDenied, 96 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_AccessDenied,
97 std::string /* jid */) 97 std::string /* jid */)
98 98
99 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_ClientAuthenticated, 99 IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_ClientAuthenticated,
100 std::string /* jid */) 100 std::string /* jid */)
101 101
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 std::string /* serialized_event */ ) 217 std::string /* serialized_event */ )
218 218
219 // Carries a mouse event from the client to the desktop session agent. 219 // Carries a mouse event from the client to the desktop session agent.
220 // |serialized_event| is a serialized protocol::MouseEvent. 220 // |serialized_event| is a serialized protocol::MouseEvent.
221 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectMouseEvent, 221 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectMouseEvent,
222 std::string /* serialized_event */ ) 222 std::string /* serialized_event */ )
223 223
224 // Changes the screen resolution in the desktop session. 224 // Changes the screen resolution in the desktop session.
225 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_SetScreenResolution, 225 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_SetScreenResolution,
226 remoting::ScreenResolution /* resolution */) 226 remoting::ScreenResolution /* resolution */)
OLDNEW
« no previous file with comments | « ppapi/shared_impl/private/net_address_private_impl.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698