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 "ipc/ipc_platform_file.h" | 11 #include "ipc/ipc_platform_file.h" |
11 #include "net/base/ip_endpoint.h" | 12 #include "net/base/ip_endpoint.h" |
12 #include "remoting/host/chromoting_param_traits.h" | 13 #include "remoting/host/chromoting_param_traits.h" |
13 #include "remoting/host/screen_resolution.h" | 14 #include "remoting/host/screen_resolution.h" |
14 #include "remoting/protocol/errors.h" | 15 #include "remoting/protocol/errors.h" |
15 #include "remoting/protocol/transport.h" | 16 #include "remoting/protocol/transport.h" |
16 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 17 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
17 | 18 |
18 #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_ | 19 #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_ |
19 | 20 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // Asks the daemon to inject Secure Attention Sequence (SAS) in the session | 133 // Asks the daemon to inject Secure Attention Sequence (SAS) in the session |
133 // where the desktop process is running. | 134 // where the desktop process is running. |
134 IPC_MESSAGE_CONTROL0(ChromotingDesktopDaemonMsg_InjectSas) | 135 IPC_MESSAGE_CONTROL0(ChromotingDesktopDaemonMsg_InjectSas) |
135 | 136 |
136 //----------------------------------------------------------------------------- | 137 //----------------------------------------------------------------------------- |
137 // Chromoting messages sent from the desktop to the network process. | 138 // Chromoting messages sent from the desktop to the network process. |
138 | 139 |
139 // Notifies the network process that a shared buffer has been created. | 140 // Notifies the network process that a shared buffer has been created. |
140 IPC_MESSAGE_CONTROL3(ChromotingDesktopNetworkMsg_CreateSharedBuffer, | 141 IPC_MESSAGE_CONTROL3(ChromotingDesktopNetworkMsg_CreateSharedBuffer, |
141 int /* id */, | 142 int /* id */, |
142 IPC::PlatformFileForTransit /* handle */, | 143 base::SharedMemoryHandle /* handle */, |
143 uint32_t /* size */) | 144 uint32_t /* size */) |
144 | 145 |
145 // Request the network process to stop using a shared buffer. | 146 // Request the network process to stop using a shared buffer. |
146 IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_ReleaseSharedBuffer, | 147 IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_ReleaseSharedBuffer, |
147 int /* id */) | 148 int /* id */) |
148 | 149 |
149 // Serialized webrtc::DesktopFrame. | 150 // Serialized webrtc::DesktopFrame. |
150 IPC_STRUCT_BEGIN(SerializedDesktopFrame) | 151 IPC_STRUCT_BEGIN(SerializedDesktopFrame) |
151 // ID of the shared memory buffer containing the pixels. | 152 // ID of the shared memory buffer containing the pixels. |
152 IPC_STRUCT_MEMBER(int, shared_buffer_id) | 153 IPC_STRUCT_MEMBER(int, shared_buffer_id) |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 std::string /* serialized_event */ ) | 229 std::string /* serialized_event */ ) |
229 | 230 |
230 // Carries a touch event from the client to the desktop session agent. | 231 // Carries a touch event from the client to the desktop session agent. |
231 // |serialized_event| is a serialized protocol::TouchEvent. | 232 // |serialized_event| is a serialized protocol::TouchEvent. |
232 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectTouchEvent, | 233 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectTouchEvent, |
233 std::string /* serialized_event */ ) | 234 std::string /* serialized_event */ ) |
234 | 235 |
235 // Changes the screen resolution in the desktop session. | 236 // Changes the screen resolution in the desktop session. |
236 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_SetScreenResolution, | 237 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_SetScreenResolution, |
237 remoting::ScreenResolution /* resolution */) | 238 remoting::ScreenResolution /* resolution */) |
OLD | NEW |