Chromium Code Reviews| 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 <list> | 8 #include <list> |
| 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/capturer/shared_buffer.h" | 18 #include "remoting/capturer/shared_buffer.h" |
| 19 #include "remoting/capturer/shared_buffer_factory.h" | 19 #include "remoting/capturer/shared_buffer_factory.h" |
| 20 #include "remoting/capturer/video_frame_capturer.h" | 20 #include "remoting/capturer/video_frame_capturer.h" |
| 21 #include "remoting/host/mouse_move_observer.h" | 21 #include "remoting/host/mouse_move_observer.h" |
| 22 #include "remoting/host/ui_strings.h" | 22 #include "remoting/host/ui_strings.h" |
| 23 #include "remoting/protocol/clipboard_stub.h" | 23 #include "remoting/protocol/clipboard_stub.h" |
| 24 #include "third_party/skia/include/core/SkRect.h" | 24 #include "third_party/skia/include/core/SkRect.h" |
| 25 #include "third_party/skia/include/core/SkSize.h" | |
| 25 | 26 |
| 26 namespace IPC { | 27 namespace IPC { |
| 27 class ChannelProxy; | 28 class ChannelProxy; |
| 28 class Message; | 29 class Message; |
| 29 } // namespace IPC | 30 } // namespace IPC |
| 30 | 31 |
| 31 namespace remoting { | 32 namespace remoting { |
| 32 | 33 |
| 33 class AudioCapturer; | 34 class AudioCapturer; |
| 34 class AudioPacket; | 35 class AudioPacket; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 225 // IPC channel connecting the desktop process with the network process. | 226 // IPC channel connecting the desktop process with the network process. |
| 226 scoped_ptr<IPC::ChannelProxy> network_channel_; | 227 scoped_ptr<IPC::ChannelProxy> network_channel_; |
| 227 | 228 |
| 228 // Next shared buffer ID to be used. | 229 // Next shared buffer ID to be used. |
| 229 int next_shared_buffer_id_; | 230 int next_shared_buffer_id_; |
| 230 | 231 |
| 231 // List of the shared buffers registered via |SharedBufferFactory| interface. | 232 // List of the shared buffers registered via |SharedBufferFactory| interface. |
| 232 typedef std::list<scoped_refptr<SharedBuffer> > SharedBuffers; | 233 typedef std::list<scoped_refptr<SharedBuffer> > SharedBuffers; |
| 233 SharedBuffers shared_buffers_; | 234 SharedBuffers shared_buffers_; |
| 234 | 235 |
| 236 // Size of the most recent captured frame. | |
| 237 SkISize size_most_recent_; | |
|
Wez
2013/01/08 21:05:25
nit: latest_size_ or current_size_
alexeypa (please no reviews)
2013/01/08 21:41:04
Done.
| |
| 238 | |
| 235 // True if the desktop session agent has been started. | 239 // True if the desktop session agent has been started. |
| 236 bool started_; | 240 bool started_; |
| 237 | 241 |
| 238 // Captures the screen. | 242 // Captures the screen. |
| 239 scoped_ptr<VideoFrameCapturer> video_capturer_; | 243 scoped_ptr<VideoFrameCapturer> video_capturer_; |
| 240 | 244 |
| 241 UiStrings ui_strings_; | 245 UiStrings ui_strings_; |
| 242 | 246 |
| 243 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); | 247 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); |
| 244 }; | 248 }; |
| 245 | 249 |
| 246 } // namespace remoting | 250 } // namespace remoting |
| 247 | 251 |
| 248 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ | 252 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ |
| OLD | NEW |