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