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

Unified Diff: remoting/host/chromoting_host.h

Issue 398873005: Preparations for Cast Host Extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clarified Cast Mode and Removed 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
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host_context.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.h
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
index fe2c26fa60036caa53d33cf83119e3bd868671ee..5cffe3c2d21353ca7f34a11ca50c3f3025848b21 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -157,6 +157,18 @@ class ChromotingHost : public base::NonThreadSafe,
pairing_registry_ = pairing_registry;
}
+ // Setting enable_cast notifies ChromotingHost that cast mode was enabled
+ // via command line. The ChromotingHost passes this on to the ClientSession on
+ // creation. Enabling cast mode simply means that if requested by the client,
+ // the ClientSession may switch from default video streaming to using WebRTC,
+ // via the CastExtension mechanism. If the ClientSession receives no request,
+ // video streaming carries on normally. This switch is currently allowed
+ // on a per-session basis, i.e., if the client requests cast mode but then
+ // wants to switch back, it must reconnect.
+ void set_enable_cast(bool enable) {
+ enable_cast_ = enable;
+ }
+
base::WeakPtr<ChromotingHost> AsWeakPtr() {
return weak_factory_.GetWeakPtr();
}
@@ -221,6 +233,9 @@ class ChromotingHost : public base::NonThreadSafe,
base::WeakPtrFactory<ChromotingHost> weak_factory_;
+ // True if cast mode is enabled on the host.
+ bool enable_cast_;
+
DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
};
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698