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

Unified Diff: remoting/protocol/session_config.h

Issue 1277093006: Enable QUIC support in chromoting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@quic_adapters
Patch Set: Created 5 years, 4 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.h ('k') | remoting/protocol/session_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/session_config.h
diff --git a/remoting/protocol/session_config.h b/remoting/protocol/session_config.h
index 0168a97eb69a1381ee6f6c5914ac1328aa7afa8b..6885de85940669cedd71d05391a901b764faab20 100644
--- a/remoting/protocol/session_config.h
+++ b/remoting/protocol/session_config.h
@@ -23,6 +23,7 @@ struct ChannelConfig {
enum TransportType {
TRANSPORT_STREAM,
TRANSPORT_MUX_STREAM,
+ TRANSPORT_QUIC_STREAM,
TRANSPORT_DATAGRAM,
TRANSPORT_NONE,
};
@@ -92,6 +93,14 @@ class SessionConfig {
return audio_config_.transport != ChannelConfig::TRANSPORT_NONE;
}
+ // Returns true if any of the channels is using QUIC.
+ bool is_using_quic() const {
+ return control_config_.transport == ChannelConfig::TRANSPORT_QUIC_STREAM ||
+ event_config_.transport == ChannelConfig::TRANSPORT_QUIC_STREAM ||
+ video_config_.transport == ChannelConfig::TRANSPORT_QUIC_STREAM ||
+ audio_config_.transport == ChannelConfig::TRANSPORT_QUIC_STREAM;
+ }
+
private:
SessionConfig();
@@ -169,6 +178,7 @@ class CandidateSessionConfig {
// Helpers for enabling/disabling specific features.
void DisableAudioChannel();
+ void PreferTransport(ChannelConfig::TransportType transport);
private:
CandidateSessionConfig();
« no previous file with comments | « remoting/protocol/session.h ('k') | remoting/protocol/session_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698