#include "pc/media_stream.h"
#include <stddef.h>
#include <utility>
#include "rtc_base/checks.h"
namespace webrtc {
template <class V>
static typename V::iterator FindTrack(V* vector, const std::string& track_id) { … }
rtc::scoped_refptr<MediaStream> MediaStream::Create(const std::string& id) { … }
MediaStream::MediaStream(const std::string& id) : … { … }
bool MediaStream::AddTrack(rtc::scoped_refptr<AudioTrackInterface> track) { … }
bool MediaStream::AddTrack(rtc::scoped_refptr<VideoTrackInterface> track) { … }
bool MediaStream::RemoveTrack(rtc::scoped_refptr<AudioTrackInterface> track) { … }
bool MediaStream::RemoveTrack(rtc::scoped_refptr<VideoTrackInterface> track) { … }
rtc::scoped_refptr<AudioTrackInterface> MediaStream::FindAudioTrack(
const std::string& track_id) { … }
rtc::scoped_refptr<VideoTrackInterface> MediaStream::FindVideoTrack(
const std::string& track_id) { … }
template <typename TrackVector, typename Track>
bool MediaStream::AddTrack(TrackVector* tracks,
rtc::scoped_refptr<Track> track) { … }
template <typename TrackVector>
bool MediaStream::RemoveTrack(
TrackVector* tracks,
rtc::scoped_refptr<MediaStreamTrackInterface> track) { … }
}