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_CLIENT_SESSION_H_ | 5 #ifndef REMOTING_HOST_CLIENT_SESSION_H_ |
| 6 #define REMOTING_HOST_CLIENT_SESSION_H_ | 6 #define REMOTING_HOST_CLIENT_SESSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 #include "remoting/protocol/clipboard_echo_filter.h" | 21 #include "remoting/protocol/clipboard_echo_filter.h" |
| 22 #include "remoting/protocol/clipboard_filter.h" | 22 #include "remoting/protocol/clipboard_filter.h" |
| 23 #include "remoting/protocol/clipboard_stub.h" | 23 #include "remoting/protocol/clipboard_stub.h" |
| 24 #include "remoting/protocol/connection_to_client.h" | 24 #include "remoting/protocol/connection_to_client.h" |
| 25 #include "remoting/protocol/host_stub.h" | 25 #include "remoting/protocol/host_stub.h" |
| 26 #include "remoting/protocol/input_event_tracker.h" | 26 #include "remoting/protocol/input_event_tracker.h" |
| 27 #include "remoting/protocol/input_filter.h" | 27 #include "remoting/protocol/input_filter.h" |
| 28 #include "remoting/protocol/input_stub.h" | 28 #include "remoting/protocol/input_stub.h" |
| 29 #include "remoting/protocol/pairing_registry.h" | 29 #include "remoting/protocol/pairing_registry.h" |
| 30 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 30 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
| 31 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" | |
| 31 | 32 |
| 32 namespace base { | 33 namespace base { |
| 33 class SingleThreadTaskRunner; | 34 class SingleThreadTaskRunner; |
| 34 } // namespace base | 35 } // namespace base |
| 35 | 36 |
| 36 namespace remoting { | 37 namespace remoting { |
| 37 | 38 |
| 38 class AudioEncoder; | 39 class AudioEncoder; |
| 39 class AudioScheduler; | 40 class AudioScheduler; |
| 40 class DesktopEnvironment; | 41 class DesktopEnvironment; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 protocol::ConnectionToClient* connection() const { | 148 protocol::ConnectionToClient* connection() const { |
| 148 return connection_.get(); | 149 return connection_.get(); |
| 149 } | 150 } |
| 150 | 151 |
| 151 bool is_authenticated() { return auth_input_filter_.enabled(); } | 152 bool is_authenticated() { return auth_input_filter_.enabled(); } |
| 152 | 153 |
| 153 const std::string* client_capabilities() const { | 154 const std::string* client_capabilities() const { |
| 154 return client_capabilities_.get(); | 155 return client_capabilities_.get(); |
| 155 } | 156 } |
| 156 | 157 |
| 158 // Stops the VideoScheduler (which stops capturing, encoding and streaming) | |
| 159 // and passes a new webrtc::ScreenCapturer to the caller. | |
| 160 scoped_ptr<webrtc::ScreenCapturer> RequestScreenCapturer(); | |
|
Wez
2014/08/07 01:25:36
You don't need this any more.
| |
| 161 | |
| 157 private: | 162 private: |
| 158 // Creates a proxy for sending clipboard events to the client. | 163 // Creates a proxy for sending clipboard events to the client. |
| 159 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy(); | 164 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy(); |
| 160 | 165 |
| 161 // Creates an audio encoder for the specified configuration. | 166 // Creates an audio encoder for the specified configuration. |
| 162 static scoped_ptr<AudioEncoder> CreateAudioEncoder( | 167 static scoped_ptr<AudioEncoder> CreateAudioEncoder( |
| 163 const protocol::SessionConfig& config); | 168 const protocol::SessionConfig& config); |
| 164 | 169 |
| 165 // Creates a video encoder for the specified configuration. | 170 // Creates a video encoder for the specified configuration. |
| 166 static scoped_ptr<VideoEncoder> CreateVideoEncoder( | 171 static scoped_ptr<VideoEncoder> CreateVideoEncoder( |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 262 bool pause_video_; | 267 bool pause_video_; |
| 263 bool lossless_video_encode_; | 268 bool lossless_video_encode_; |
| 264 bool lossless_video_color_; | 269 bool lossless_video_color_; |
| 265 | 270 |
| 266 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 271 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
| 267 }; | 272 }; |
| 268 | 273 |
| 269 } // namespace remoting | 274 } // namespace remoting |
| 270 | 275 |
| 271 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 276 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
| OLD | NEW |