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

Unified Diff: remoting/protocol/session_config.cc

Issue 565263006: Remove legacy version of the control channel protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « remoting/protocol/session_config.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/session_config.cc
diff --git a/remoting/protocol/session_config.cc b/remoting/protocol/session_config.cc
index 3f2c911b0c1db8da62e43a9f0e4a6c4d1d2aed39..06936276d0b015e7102bd69b2fbb826e841a85b3 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;
Wez 2014/09/13 17:21:41 nit: Add a comment to explain what "default" means
-
-// 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(
« no previous file with comments | « remoting/protocol/session_config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698