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