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); |
}; |