| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Extracts final protocol configuration. Must be used for the description | 82 // Extracts final protocol configuration. Must be used for the description |
| 83 // received in the session-accept stanza. If the selection is ambiguous | 83 // received in the session-accept stanza. If the selection is ambiguous |
| 84 // (e.g. there is more than one configuration for one of the channel) | 84 // (e.g. there is more than one configuration for one of the channel) |
| 85 // or undefined (e.g. no configurations for a channel) then nullptr is | 85 // or undefined (e.g. no configurations for a channel) then nullptr is |
| 86 // returned. | 86 // returned. |
| 87 static std::unique_ptr<SessionConfig> GetFinalConfig( | 87 static std::unique_ptr<SessionConfig> GetFinalConfig( |
| 88 const CandidateSessionConfig* candidate_config); | 88 const CandidateSessionConfig* candidate_config); |
| 89 | 89 |
| 90 // Returns a suitable session configuration for use in tests. | 90 // Returns a suitable session configuration for use in tests. |
| 91 static std::unique_ptr<SessionConfig> ForTest(); | 91 static std::unique_ptr<SessionConfig> ForTest(); |
| 92 static std::unique_ptr<SessionConfig> ForTestWithAudio(); |
| 92 static std::unique_ptr<SessionConfig> ForTestWithVerbatimVideo(); | 93 static std::unique_ptr<SessionConfig> ForTestWithVerbatimVideo(); |
| 93 static std::unique_ptr<SessionConfig> ForTestWithWebrtc(); | 94 static std::unique_ptr<SessionConfig> ForTestWithWebrtc(); |
| 94 | 95 |
| 95 Protocol protocol() const { return protocol_; } | 96 Protocol protocol() const { return protocol_; } |
| 96 | 97 |
| 97 // All fields below should be ignored when protocol() is set to WEBRTC. | 98 // All fields below should be ignored when protocol() is set to WEBRTC. |
| 98 const ChannelConfig& control_config() const; | 99 const ChannelConfig& control_config() const; |
| 99 const ChannelConfig& event_config() const; | 100 const ChannelConfig& event_config() const; |
| 100 const ChannelConfig& video_config() const; | 101 const ChannelConfig& video_config() const; |
| 101 const ChannelConfig& audio_config() const; | 102 const ChannelConfig& audio_config() const; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 std::list<ChannelConfig> video_configs_; | 202 std::list<ChannelConfig> video_configs_; |
| 202 std::list<ChannelConfig> audio_configs_; | 203 std::list<ChannelConfig> audio_configs_; |
| 203 | 204 |
| 204 bool vp9_experiment_enabled_ = false; | 205 bool vp9_experiment_enabled_ = false; |
| 205 }; | 206 }; |
| 206 | 207 |
| 207 } // namespace protocol | 208 } // namespace protocol |
| 208 } // namespace remoting | 209 } // namespace remoting |
| 209 | 210 |
| 210 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_ | 211 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_ |
| OLD | NEW |