Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Unified Diff: remoting/host/client_session.h

Issue 398873005: Preparations for Cast Host Extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added remoting_me2me_host Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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; }
Wez 2014/07/17 22:56:37 As for ChromotingHost, clarify what this actually
+
+ 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() {
Wez 2014/07/17 22:56:36 This actually releases and returns the ScreenCaptu
+ return screen_capturer_.Pass();
+ }
+
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,
Wez 2014/07/17 22:56:37 nit: "Used to capture screens" isn't very helpful
+ // like CastExtensionSession, to request it when needed.
Wez 2014/07/17 22:56:37 Use by what? Does the normal Chromoting video chan
+ scoped_ptr<webrtc::ScreenCapturer> screen_capturer_;
+
DISALLOW_COPY_AND_ASSIGN(ClientSession);
};

Powered by Google App Engine
This is Rietveld 408576698