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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 const ChannelConfig& video_config() const { return video_config_; } | 75 const ChannelConfig& video_config() const { return video_config_; } |
76 void set_audio_config(const ChannelConfig& audio_config) { | 76 void set_audio_config(const ChannelConfig& audio_config) { |
77 audio_config_ = audio_config; | 77 audio_config_ = audio_config; |
78 } | 78 } |
79 const ChannelConfig& audio_config() const { return audio_config_; } | 79 const ChannelConfig& audio_config() const { return audio_config_; } |
80 | 80 |
81 bool is_audio_enabled() const { | 81 bool is_audio_enabled() const { |
82 return audio_config_.transport != ChannelConfig::TRANSPORT_NONE; | 82 return audio_config_.transport != ChannelConfig::TRANSPORT_NONE; |
83 } | 83 } |
84 | 84 |
| 85 // Returns true if the control channel supports capabilities. |
| 86 bool SupportsCapabilities() const; |
| 87 |
85 // Returns a suitable session configuration for use in tests. | 88 // Returns a suitable session configuration for use in tests. |
86 static SessionConfig ForTest(); | 89 static SessionConfig ForTest(); |
87 | 90 |
88 private: | 91 private: |
89 ChannelConfig control_config_; | 92 ChannelConfig control_config_; |
90 ChannelConfig event_config_; | 93 ChannelConfig event_config_; |
91 ChannelConfig video_config_; | 94 ChannelConfig video_config_; |
92 ChannelConfig audio_config_; | 95 ChannelConfig audio_config_; |
93 }; | 96 }; |
94 | 97 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 std::vector<ChannelConfig> control_configs_; | 175 std::vector<ChannelConfig> control_configs_; |
173 std::vector<ChannelConfig> event_configs_; | 176 std::vector<ChannelConfig> event_configs_; |
174 std::vector<ChannelConfig> video_configs_; | 177 std::vector<ChannelConfig> video_configs_; |
175 std::vector<ChannelConfig> audio_configs_; | 178 std::vector<ChannelConfig> audio_configs_; |
176 }; | 179 }; |
177 | 180 |
178 } // namespace protocol | 181 } // namespace protocol |
179 } // namespace remoting | 182 } // namespace remoting |
180 | 183 |
181 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_ | 184 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_ |
OLD | NEW |