| 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 14 matching lines...) Expand all Loading... |
| 25 TRANSPORT_DATAGRAM, | 25 TRANSPORT_DATAGRAM, |
| 26 TRANSPORT_NONE, | 26 TRANSPORT_NONE, |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 enum Codec { | 29 enum Codec { |
| 30 CODEC_UNDEFINED, // Used for event and control channels. | 30 CODEC_UNDEFINED, // Used for event and control channels. |
| 31 CODEC_VERBATIM, | 31 CODEC_VERBATIM, |
| 32 CODEC_ZIP, | 32 CODEC_ZIP, |
| 33 CODEC_VP8, | 33 CODEC_VP8, |
| 34 CODEC_VORBIS, | 34 CODEC_VORBIS, |
| 35 CODEC_SPEEX, |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 ChannelConfig(); | 38 ChannelConfig(); |
| 38 ChannelConfig(TransportType transport, int version, Codec codec); | 39 ChannelConfig(TransportType transport, int version, Codec codec); |
| 39 | 40 |
| 40 // operator== is overloaded so that std::find() works with | 41 // operator== is overloaded so that std::find() works with |
| 41 // std::vector<ChannelConfig>. | 42 // std::vector<ChannelConfig>. |
| 42 bool operator==(const ChannelConfig& b) const; | 43 bool operator==(const ChannelConfig& b) const; |
| 43 | 44 |
| 44 void Reset(); | 45 void Reset(); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 std::vector<ChannelConfig> control_configs_; | 162 std::vector<ChannelConfig> control_configs_; |
| 162 std::vector<ChannelConfig> event_configs_; | 163 std::vector<ChannelConfig> event_configs_; |
| 163 std::vector<ChannelConfig> video_configs_; | 164 std::vector<ChannelConfig> video_configs_; |
| 164 std::vector<ChannelConfig> audio_configs_; | 165 std::vector<ChannelConfig> audio_configs_; |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace protocol | 168 } // namespace protocol |
| 168 } // namespace remoting | 169 } // namespace remoting |
| 169 | 170 |
| 170 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_ | 171 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_ |
| OLD | NEW |