summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/session_config.cc
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2014-09-13 13:41:02 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-13 20:45:11 +0000
commitf69b019f961526cbef468814597c9d10d8237bab (patch)
treea379b1ea82832c93644843588e3747cb9b14aef3 /remoting/protocol/session_config.cc
parent3f43ba638732da04c922605827ad3e7e603d41e0 (diff)
downloadchromium_src-f69b019f961526cbef468814597c9d10d8237bab.zip
chromium_src-f69b019f961526cbef468814597c9d10d8237bab.tar.gz
chromium_src-f69b019f961526cbef468814597c9d10d8237bab.tar.bz2
Remove legacy version of the control channel protocol.
All current versions of host and client support capabilities, we no longer need to keep support for older versions. Review URL: https://codereview.chromium.org/565263006 Cr-Commit-Position: refs/heads/master@{#294752}
Diffstat (limited to 'remoting/protocol/session_config.cc')
-rw-r--r--remoting/protocol/session_config.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/remoting/protocol/session_config.cc b/remoting/protocol/session_config.cc
index 3f2c911..0693627 100644
--- a/remoting/protocol/session_config.cc
+++ b/remoting/protocol/session_config.cc
@@ -10,10 +10,7 @@ namespace remoting {
namespace protocol {
const int kDefaultStreamVersion = 2;
-
-// The control channel version that supports the "capabilities" message.
const int kControlStreamVersion = 3;
-const int kControlStreamVersionNoCapabilities = kDefaultStreamVersion;
ChannelConfig ChannelConfig::None() {
return ChannelConfig();
@@ -41,10 +38,6 @@ bool ChannelConfig::operator==(const ChannelConfig& b) const {
SessionConfig::SessionConfig() {
}
-bool SessionConfig::SupportsCapabilities() const {
- return control_config_.version >= kControlStreamVersion;
-}
-
// static
SessionConfig SessionConfig::ForTest() {
SessionConfig result;
@@ -180,10 +173,6 @@ scoped_ptr<CandidateSessionConfig> CandidateSessionConfig::CreateDefault() {
ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM,
kControlStreamVersion,
ChannelConfig::CODEC_UNDEFINED));
- result->mutable_control_configs()->push_back(
- ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM,
- kControlStreamVersionNoCapabilities,
- ChannelConfig::CODEC_UNDEFINED));
// Event channel.
result->mutable_event_configs()->push_back(