Chromium Code Reviews| Index: remoting/host/client_session.h |
| diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h |
| index a86839ec5875e133f5a6f87a987829cd112aeb40..6e71bfb0aaf351ac757ba83876ca7250f6a7d979 100644 |
| --- a/remoting/host/client_session.h |
| +++ b/remoting/host/client_session.h |
| @@ -30,6 +30,7 @@ |
| #include "remoting/protocol/input_stub.h" |
| #include "remoting/protocol/pairing_registry.h" |
| #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
| +#include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" |
| namespace base { |
| class SingleThreadTaskRunner; |
| @@ -165,6 +166,18 @@ class ClientSession |
| return client_capabilities_.get(); |
| } |
| + void set_enable_cast(bool enable) { enable_cast_ = enable; } |
| + |
| + scoped_refptr<base::SingleThreadTaskRunner> network_task_runner() { |
| + return network_task_runner_; |
| + } |
| + scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner() { |
| + return video_capture_task_runner_; |
| + } |
| + scoped_ptr<webrtc::ScreenCapturer> RequestScreenCapturer() { |
| + return screen_capturer_.Pass(); |
|
aiguha
2014/07/17 01:49:23
TODO(aiguha): Discuss with sergeyu@ a better desig
|
| + } |
|
aiguha
2014/07/17 01:49:23
CastExtensionSession's constructor receives a poin
|
| + |
| private: |
| typedef ScopedVector<HostExtensionSession> HostExtensionSessionList; |
| @@ -266,6 +279,13 @@ class ClientSession |
| // Host extension sessions, used to handle extension messages. |
| HostExtensionSessionList extension_sessions_; |
| + // True if cast mode is enabled. |
| + bool enable_cast_; |
| + |
| + // Used to capture screens. This is a class member to allow external objects, |
| + // like CastExtensionSession, to request it when needed. |
| + scoped_ptr<webrtc::ScreenCapturer> screen_capturer_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ClientSession); |
| }; |