| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_PROTOCOL_SESSION_CONFIG_H_ | 5 #ifndef REMOTING_PROTOCOL_SESSION_CONFIG_H_ |
| 6 #define REMOTING_PROTOCOL_SESSION_CONFIG_H_ | 6 #define REMOTING_PROTOCOL_SESSION_CONFIG_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 const ChannelConfig& video_config() const { return video_config_; } | 76 const ChannelConfig& video_config() const { return video_config_; } |
| 77 void set_audio_config(const ChannelConfig& audio_config) { | 77 void set_audio_config(const ChannelConfig& audio_config) { |
| 78 audio_config_ = audio_config; | 78 audio_config_ = audio_config; |
| 79 } | 79 } |
| 80 const ChannelConfig& audio_config() const { return audio_config_; } | 80 const ChannelConfig& audio_config() const { return audio_config_; } |
| 81 | 81 |
| 82 bool is_audio_enabled() const { | 82 bool is_audio_enabled() const { |
| 83 return audio_config_.transport != ChannelConfig::TRANSPORT_NONE; | 83 return audio_config_.transport != ChannelConfig::TRANSPORT_NONE; |
| 84 } | 84 } |
| 85 | 85 |
| 86 // Returns true if the control channel supports capabilities. | |
| 87 bool SupportsCapabilities() const; | |
| 88 | |
| 89 // Returns a suitable session configuration for use in tests. | 86 // Returns a suitable session configuration for use in tests. |
| 90 static SessionConfig ForTest(); | 87 static SessionConfig ForTest(); |
| 91 | 88 |
| 92 private: | 89 private: |
| 93 ChannelConfig control_config_; | 90 ChannelConfig control_config_; |
| 94 ChannelConfig event_config_; | 91 ChannelConfig event_config_; |
| 95 ChannelConfig video_config_; | 92 ChannelConfig video_config_; |
| 96 ChannelConfig audio_config_; | 93 ChannelConfig audio_config_; |
| 97 }; | 94 }; |
| 98 | 95 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 std::list<ChannelConfig> control_configs_; | 174 std::list<ChannelConfig> control_configs_; |
| 178 std::list<ChannelConfig> event_configs_; | 175 std::list<ChannelConfig> event_configs_; |
| 179 std::list<ChannelConfig> video_configs_; | 176 std::list<ChannelConfig> video_configs_; |
| 180 std::list<ChannelConfig> audio_configs_; | 177 std::list<ChannelConfig> audio_configs_; |
| 181 }; | 178 }; |
| 182 | 179 |
| 183 } // namespace protocol | 180 } // namespace protocol |
| 184 } // namespace remoting | 181 } // namespace remoting |
| 185 | 182 |
| 186 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_ | 183 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_ |
| OLD | NEW |