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_AGENT_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ |
6 #define REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ | 6 #define REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "ipc/ipc_listener.h" | 16 #include "ipc/ipc_listener.h" |
17 #include "ipc/ipc_platform_file.h" | 17 #include "ipc/ipc_platform_file.h" |
18 #include "remoting/host/client_session_control.h" | 18 #include "remoting/host/client_session_control.h" |
19 #include "remoting/protocol/clipboard_stub.h" | 19 #include "remoting/protocol/clipboard_stub.h" |
| 20 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
20 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 21 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
21 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" | 22 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" |
22 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" | |
23 | 23 |
24 namespace IPC { | 24 namespace IPC { |
25 class ChannelProxy; | 25 class ChannelProxy; |
26 class Message; | 26 class Message; |
27 } // namespace IPC | 27 } // namespace IPC |
28 | 28 |
29 namespace remoting { | 29 namespace remoting { |
30 | 30 |
31 class AudioCapturer; | 31 class AudioCapturer; |
32 class AudioPacket; | 32 class AudioPacket; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Next shared buffer ID to be used. | 212 // Next shared buffer ID to be used. |
213 int next_shared_buffer_id_; | 213 int next_shared_buffer_id_; |
214 | 214 |
215 // The number of currently allocated shared buffers. | 215 // The number of currently allocated shared buffers. |
216 int shared_buffers_; | 216 int shared_buffers_; |
217 | 217 |
218 // True if the desktop session agent has been started. | 218 // True if the desktop session agent has been started. |
219 bool started_; | 219 bool started_; |
220 | 220 |
221 // Captures the screen. | 221 // Captures the screen. |
222 scoped_ptr<webrtc::ScreenCapturer> video_capturer_; | 222 scoped_ptr<webrtc::DesktopCapturer> video_capturer_; |
223 | 223 |
224 // Captures mouse shapes. | 224 // Captures mouse shapes. |
225 scoped_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor_; | 225 scoped_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor_; |
226 | 226 |
227 // Keep reference to the last frame sent to make sure shared buffer is alive | 227 // Keep reference to the last frame sent to make sure shared buffer is alive |
228 // before it's received. | 228 // before it's received. |
229 scoped_ptr<webrtc::DesktopFrame> last_frame_; | 229 scoped_ptr<webrtc::DesktopFrame> last_frame_; |
230 | 230 |
231 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); | 231 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); |
232 }; | 232 }; |
233 | 233 |
234 } // namespace remoting | 234 } // namespace remoting |
235 | 235 |
236 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ | 236 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ |
OLD | NEW |