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

Unified Diff: remoting/protocol/session_config.h

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: CR feedback #2 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.h
diff --git a/remoting/protocol/session_config.h b/remoting/protocol/session_config.h
index bca980034a0d525ede43efc33e7d22618a0d1984..36f320e7a5cf5d3bf9539c069e29cd99289361a6 100644
--- a/remoting/protocol/session_config.h
+++ b/remoting/protocol/session_config.h
@@ -15,6 +15,7 @@ namespace remoting {
namespace protocol {
extern const int kDefaultStreamVersion;
+extern const int kCapabilitiesControlStreamVersion;
Sergey Ulanov 2013/04/16 08:38:53 This value would not need to be in the header if s
alexeypa (please no reviews) 2013/04/16 22:06:11 Done.
// Struct for configuration parameters of a single channel.
// Some channels (like video) may have multiple underlying sockets that need
@@ -82,6 +83,11 @@ class SessionConfig {
return audio_config_.transport != ChannelConfig::TRANSPORT_NONE;
}
+ // Returns true if the control channel supports capabilities.
+ bool supports_capabilities() const {
+ return control_config_.version >= kCapabilitiesControlStreamVersion;
+ }
+
// Returns a suitable session configuration for use in tests.
static SessionConfig ForTest();

Powered by Google App Engine
This is Rietveld 408576698