| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class TrackMediaInfoMap { | 26 class TrackMediaInfoMap { |
| 27 public: | 27 public: |
| 28 TrackMediaInfoMap(std::unique_ptr<cricket::VoiceMediaInfo> voice_media_info, | 28 TrackMediaInfoMap(std::unique_ptr<cricket::VoiceMediaInfo> voice_media_info, |
| 29 std::unique_ptr<cricket::VideoMediaInfo> video_media_info); | 29 std::unique_ptr<cricket::VideoMediaInfo> video_media_info); |
| 30 | 30 |
| 31 void Initialize( | 31 void Initialize( |
| 32 const std::vector<rtc::scoped_refptr<RtpSenderInterface>>& rtp_senders, | 32 const std::vector<rtc::scoped_refptr<RtpSenderInterface>>& rtp_senders, |
| 33 const std::vector<rtc::scoped_refptr<RtpReceiverInterface>>& | 33 const std::vector<rtc::scoped_refptr<RtpReceiverInterface>>& |
| 34 rtp_receivers); | 34 rtp_receivers); |
| 35 | 35 |
| 36 const cricket::VoiceMediaInfo& voice_media_info() const { | 36 const cricket::VoiceMediaInfo* voice_media_info() const { |
| 37 return *voice_media_info_; | 37 return voice_media_info_.get(); |
| 38 } | 38 } |
| 39 const cricket::VideoMediaInfo& video_media_info() const { | 39 const cricket::VideoMediaInfo* video_media_info() const { |
| 40 return *video_media_info_; | 40 return video_media_info_.get(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 const std::vector<cricket::VoiceSenderInfo*>* GetVoiceSenderInfos( | 43 const std::vector<cricket::VoiceSenderInfo*>* GetVoiceSenderInfos( |
| 44 const AudioTrackInterface& local_audio_track) const; | 44 const AudioTrackInterface& local_audio_track) const; |
| 45 const cricket::VoiceReceiverInfo* GetVoiceReceiverInfo( | 45 const cricket::VoiceReceiverInfo* GetVoiceReceiverInfo( |
| 46 const AudioTrackInterface& remote_audio_track) const; | 46 const AudioTrackInterface& remote_audio_track) const; |
| 47 const std::vector<cricket::VideoSenderInfo*>* GetVideoSenderInfos( | 47 const std::vector<cricket::VideoSenderInfo*>* GetVideoSenderInfos( |
| 48 const VideoTrackInterface& local_video_track) const; | 48 const VideoTrackInterface& local_video_track) const; |
| 49 const cricket::VideoReceiverInfo* GetVideoReceiverInfo( | 49 const cricket::VideoReceiverInfo* GetVideoReceiverInfo( |
| 50 const VideoTrackInterface& remote_video_track) const; | 50 const VideoTrackInterface& remote_video_track) const; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 78 rtc::scoped_refptr<AudioTrackInterface>> voice_receiver_info_to_track_; | 78 rtc::scoped_refptr<AudioTrackInterface>> voice_receiver_info_to_track_; |
| 79 std::map<const cricket::VideoSenderInfo*, | 79 std::map<const cricket::VideoSenderInfo*, |
| 80 rtc::scoped_refptr<VideoTrackInterface>> video_sender_info_to_track_; | 80 rtc::scoped_refptr<VideoTrackInterface>> video_sender_info_to_track_; |
| 81 std::map<const cricket::VideoReceiverInfo*, | 81 std::map<const cricket::VideoReceiverInfo*, |
| 82 rtc::scoped_refptr<VideoTrackInterface>> video_receiver_info_to_track_; | 82 rtc::scoped_refptr<VideoTrackInterface>> video_receiver_info_to_track_; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace webrtc | 85 } // namespace webrtc |
| 86 | 86 |
| 87 #endif // WEBRTC_API_TRACKMEDIAINFOMAP_H_ | 87 #endif // WEBRTC_API_TRACKMEDIAINFOMAP_H_ |
| OLD | NEW |