| 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_DESKTOP_SESSION_PROXY_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ |
| 6 #define REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ | 6 #define REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 void OnAudioPacket(const std::string& serialized_packet); | 153 void OnAudioPacket(const std::string& serialized_packet); |
| 154 | 154 |
| 155 // Registers a new shared buffer created by the desktop process. | 155 // Registers a new shared buffer created by the desktop process. |
| 156 void OnCreateSharedBuffer(int id, | 156 void OnCreateSharedBuffer(int id, |
| 157 base::SharedMemoryHandle handle, | 157 base::SharedMemoryHandle handle, |
| 158 uint32_t size); | 158 uint32_t size); |
| 159 | 159 |
| 160 // Drops a cached reference to the shared buffer. | 160 // Drops a cached reference to the shared buffer. |
| 161 void OnReleaseSharedBuffer(int id); | 161 void OnReleaseSharedBuffer(int id); |
| 162 | 162 |
| 163 // Handles CaptureCompleted notification from the desktop session agent. | 163 // Handles CaptureResult notification from the desktop session agent. |
| 164 void OnCaptureCompleted(const SerializedDesktopFrame& serialized_frame); | 164 void OnCaptureResult(webrtc::DesktopCapturer::Result result, |
| 165 const SerializedDesktopFrame& serialized_frame); |
| 165 | 166 |
| 166 // Handles MouseCursor notification from the desktop session agent. | 167 // Handles MouseCursor notification from the desktop session agent. |
| 167 void OnMouseCursor(const webrtc::MouseCursor& mouse_cursor); | 168 void OnMouseCursor(const webrtc::MouseCursor& mouse_cursor); |
| 168 | 169 |
| 169 // Handles InjectClipboardEvent request from the desktop integration process. | 170 // Handles InjectClipboardEvent request from the desktop integration process. |
| 170 void OnInjectClipboardEvent(const std::string& serialized_event); | 171 void OnInjectClipboardEvent(const std::string& serialized_event); |
| 171 | 172 |
| 172 // Sends a message to the desktop session agent. The message is silently | 173 // Sends a message to the desktop session agent. The message is silently |
| 173 // deleted if the channel is broken. | 174 // deleted if the channel is broken. |
| 174 void SendToDesktop(IPC::Message* message); | 175 void SendToDesktop(IPC::Message* message); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 }; | 230 }; |
| 230 | 231 |
| 231 // Destroys |DesktopSessionProxy| instances on the caller's thread. | 232 // Destroys |DesktopSessionProxy| instances on the caller's thread. |
| 232 struct DesktopSessionProxyTraits { | 233 struct DesktopSessionProxyTraits { |
| 233 static void Destruct(const DesktopSessionProxy* desktop_session_proxy); | 234 static void Destruct(const DesktopSessionProxy* desktop_session_proxy); |
| 234 }; | 235 }; |
| 235 | 236 |
| 236 } // namespace remoting | 237 } // namespace remoting |
| 237 | 238 |
| 238 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ | 239 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ |
| OLD | NEW |