| 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" | 
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 176 | 176 | 
| 177   scoped_refptr<AutoThreadTaskRunner> video_capture_task_runner() const { | 177   scoped_refptr<AutoThreadTaskRunner> video_capture_task_runner() const { | 
| 178     return video_capture_task_runner_; | 178     return video_capture_task_runner_; | 
| 179   } | 179   } | 
| 180 | 180 | 
| 181   const base::WeakPtr<Delegate>& delegate() const { | 181   const base::WeakPtr<Delegate>& delegate() const { | 
| 182     return delegate_; | 182     return delegate_; | 
| 183   } | 183   } | 
| 184 | 184 | 
| 185  private: | 185  private: | 
|  | 186   // Closes |desktop_pipe_| if it is open. | 
|  | 187   void CloseDesktopPipeHandle(); | 
|  | 188 | 
| 186   // Task runner dedicated to running methods of |audio_capturer_|. | 189   // Task runner dedicated to running methods of |audio_capturer_|. | 
| 187   scoped_refptr<AutoThreadTaskRunner> audio_capture_task_runner_; | 190   scoped_refptr<AutoThreadTaskRunner> audio_capture_task_runner_; | 
| 188 | 191 | 
| 189   // Task runner on which public methods of this class should be called. | 192   // Task runner on which public methods of this class should be called. | 
| 190   scoped_refptr<AutoThreadTaskRunner> caller_task_runner_; | 193   scoped_refptr<AutoThreadTaskRunner> caller_task_runner_; | 
| 191 | 194 | 
| 192   // Task runner on which keyboard/mouse input is injected. | 195   // Task runner on which keyboard/mouse input is injected. | 
| 193   scoped_refptr<AutoThreadTaskRunner> input_task_runner_; | 196   scoped_refptr<AutoThreadTaskRunner> input_task_runner_; | 
| 194 | 197 | 
| 195   // Task runner used by the IPC channel. | 198   // Task runner used by the IPC channel. | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 215 | 218 | 
| 216   // Tracker used to release pressed keys and buttons when disconnecting. | 219   // Tracker used to release pressed keys and buttons when disconnecting. | 
| 217   scoped_ptr<protocol::InputEventTracker> input_tracker_; | 220   scoped_ptr<protocol::InputEventTracker> input_tracker_; | 
| 218 | 221 | 
| 219   // Filter used to disable remote inputs during local input activity. | 222   // Filter used to disable remote inputs during local input activity. | 
| 220   scoped_ptr<RemoteInputFilter> remote_input_filter_; | 223   scoped_ptr<RemoteInputFilter> remote_input_filter_; | 
| 221 | 224 | 
| 222   // IPC channel connecting the desktop process with the network process. | 225   // IPC channel connecting the desktop process with the network process. | 
| 223   scoped_ptr<IPC::ChannelProxy> network_channel_; | 226   scoped_ptr<IPC::ChannelProxy> network_channel_; | 
| 224 | 227 | 
|  | 228   // The client end of the network-to-desktop pipe. It is kept alive until | 
|  | 229   // the network process connects to the pipe. | 
|  | 230   IPC::PlatformFileForTransit desktop_pipe_; | 
|  | 231 | 
| 225   // Size of the most recent captured video frame. | 232   // Size of the most recent captured video frame. | 
| 226   SkISize current_size_; | 233   SkISize current_size_; | 
| 227 | 234 | 
| 228   // Next shared buffer ID to be used. | 235   // Next shared buffer ID to be used. | 
| 229   int next_shared_buffer_id_; | 236   int next_shared_buffer_id_; | 
| 230 | 237 | 
| 231   // List of the shared buffers. | 238   // List of the shared buffers. | 
| 232   typedef std::list<scoped_refptr<media::SharedBuffer> > SharedBuffers; | 239   typedef std::list<scoped_refptr<media::SharedBuffer> > SharedBuffers; | 
| 233   SharedBuffers shared_buffers_; | 240   SharedBuffers shared_buffers_; | 
| 234 | 241 | 
| 235   // True if the desktop session agent has been started. | 242   // True if the desktop session agent has been started. | 
| 236   bool started_; | 243   bool started_; | 
| 237 | 244 | 
| 238   // Captures the screen. | 245   // Captures the screen. | 
| 239   scoped_ptr<media::ScreenCapturer> video_capturer_; | 246   scoped_ptr<media::ScreenCapturer> video_capturer_; | 
| 240 | 247 | 
| 241   UiStrings ui_strings_; | 248   UiStrings ui_strings_; | 
| 242 | 249 | 
| 243   DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); | 250   DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); | 
| 244 }; | 251 }; | 
| 245 | 252 | 
| 246 }  // namespace remoting | 253 }  // namespace remoting | 
| 247 | 254 | 
| 248 #endif  // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ | 255 #endif  // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ | 
| OLD | NEW | 
|---|