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 <cstdint> | 8 #include <cstdint> |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 void DisconnectSession(protocol::ErrorCode error); | 103 void DisconnectSession(protocol::ErrorCode error); |
104 | 104 |
105 // Stores |audio_capturer| to be used to post captured audio packets. Called | 105 // Stores |audio_capturer| to be used to post captured audio packets. Called |
106 // on the |audio_capture_task_runner_| thread. | 106 // on the |audio_capture_task_runner_| thread. |
107 void SetAudioCapturer(const base::WeakPtr<IpcAudioCapturer>& audio_capturer); | 107 void SetAudioCapturer(const base::WeakPtr<IpcAudioCapturer>& audio_capturer); |
108 | 108 |
109 // APIs used to implement the webrtc::DesktopCapturer interface. These must be | 109 // APIs used to implement the webrtc::DesktopCapturer interface. These must be |
110 // called on the |video_capture_task_runner_| thread. | 110 // called on the |video_capture_task_runner_| thread. |
111 void CaptureFrame(); | 111 void CaptureFrame(); |
112 | 112 |
113 bool GetSourceList(webrtc::DesktopCapturer::SourceList* sources); | |
Sergey Ulanov
2016/11/05 00:16:26
I don't think we want these methods here, see my c
Hzj_jie
2016/11/06 04:27:24
Done.
| |
114 | |
115 bool SelectSource(webrtc::DesktopCapturer::SourceId id); | |
116 | |
113 // Stores |video_capturer| to be used to post captured video frames. Called on | 117 // Stores |video_capturer| to be used to post captured video frames. Called on |
114 // the |video_capture_task_runner_| thread. | 118 // the |video_capture_task_runner_| thread. |
115 void SetVideoCapturer( | 119 void SetVideoCapturer( |
116 const base::WeakPtr<IpcVideoFrameCapturer> video_capturer); | 120 const base::WeakPtr<IpcVideoFrameCapturer> video_capturer); |
117 | 121 |
118 // Stores |mouse_cursor_monitor| to be used to post mouse cursor changes. | 122 // Stores |mouse_cursor_monitor| to be used to post mouse cursor changes. |
119 // Called on the |video_capture_task_runner_| thread. | 123 // Called on the |video_capture_task_runner_| thread. |
120 void SetMouseCursorMonitor( | 124 void SetMouseCursorMonitor( |
121 const base::WeakPtr<IpcMouseCursorMonitor>& mouse_cursor_monitor); | 125 const base::WeakPtr<IpcMouseCursorMonitor>& mouse_cursor_monitor); |
122 | 126 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 }; | 229 }; |
226 | 230 |
227 // Destroys |DesktopSessionProxy| instances on the caller's thread. | 231 // Destroys |DesktopSessionProxy| instances on the caller's thread. |
228 struct DesktopSessionProxyTraits { | 232 struct DesktopSessionProxyTraits { |
229 static void Destruct(const DesktopSessionProxy* desktop_session_proxy); | 233 static void Destruct(const DesktopSessionProxy* desktop_session_proxy); |
230 }; | 234 }; |
231 | 235 |
232 } // namespace remoting | 236 } // namespace remoting |
233 | 237 |
234 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ | 238 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ |
OLD | NEW |