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

Unified Diff: remoting/protocol/session_config.cc

Issue 13932020: Set the initial resolution of an RDP session to the client screen resolution if it is available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed remoting_unittests Created 7 years, 8 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/protocol/session_config.cc
diff --git a/remoting/protocol/session_config.cc b/remoting/protocol/session_config.cc
index 1f05a83182bf91b7ce86337307b5191a9ff28c4a..3d735f1d6693fac30bcc05928c28c8725f94a8a7 100644
--- a/remoting/protocol/session_config.cc
+++ b/remoting/protocol/session_config.cc
@@ -11,6 +11,9 @@ namespace protocol {
const int kDefaultStreamVersion = 2;
+// The control channel version that supports the "capabilities" message.
+const int kCapabilitiesControlStreamVersion = 3;
Sergey Ulanov 2013/04/18 00:34:53 I think it's better to have kControlStreamVersion=
alexeypa (please no reviews) 2013/04/18 18:56:36 Done.
+
ChannelConfig ChannelConfig::None() {
return ChannelConfig();
}
@@ -35,7 +38,10 @@ bool ChannelConfig::operator==(const ChannelConfig& b) const {
}
SessionConfig::SessionConfig() {
+}
+bool SessionConfig::SupportsCapabilities() const {
+ return control_config_.version >= kCapabilitiesControlStreamVersion;
}
// static
@@ -171,6 +177,10 @@ scoped_ptr<CandidateSessionConfig> CandidateSessionConfig::CreateDefault() {
// Control channel.
result->mutable_control_configs()->push_back(
ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM,
+ kCapabilitiesControlStreamVersion,
+ ChannelConfig::CODEC_UNDEFINED));
+ result->mutable_control_configs()->push_back(
+ ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM,
kDefaultStreamVersion,
ChannelConfig::CODEC_UNDEFINED));
result->mutable_control_configs()->push_back(

Powered by Google App Engine
This is Rietveld 408576698