#include "third_party/blink/renderer/modules/peerconnection/webrtc_media_stream_track_adapter_map.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/renderer/modules/peerconnection/peer_connection_dependency_factory.h"
namespace blink {
WebRtcMediaStreamTrackAdapterMap::AdapterRef::AdapterRef(
scoped_refptr<WebRtcMediaStreamTrackAdapterMap> map,
Type type,
scoped_refptr<blink::WebRtcMediaStreamTrackAdapter> adapter)
: … { … }
WebRtcMediaStreamTrackAdapterMap::AdapterRef::~AdapterRef() { … }
std::unique_ptr<WebRtcMediaStreamTrackAdapterMap::AdapterRef>
WebRtcMediaStreamTrackAdapterMap::AdapterRef::Copy() const { … }
void WebRtcMediaStreamTrackAdapterMap::AdapterRef::InitializeOnMainThread() { … }
WebRtcMediaStreamTrackAdapterMap::WebRtcMediaStreamTrackAdapterMap(
blink::PeerConnectionDependencyFactory* const factory,
scoped_refptr<base::SingleThreadTaskRunner> main_thread)
: … { … }
WebRtcMediaStreamTrackAdapterMap::~WebRtcMediaStreamTrackAdapterMap() { … }
std::unique_ptr<WebRtcMediaStreamTrackAdapterMap::AdapterRef>
WebRtcMediaStreamTrackAdapterMap::GetLocalTrackAdapter(
MediaStreamComponent* component) { … }
std::unique_ptr<WebRtcMediaStreamTrackAdapterMap::AdapterRef>
WebRtcMediaStreamTrackAdapterMap::GetLocalTrackAdapter(
webrtc::MediaStreamTrackInterface* webrtc_track) { … }
std::unique_ptr<WebRtcMediaStreamTrackAdapterMap::AdapterRef>
WebRtcMediaStreamTrackAdapterMap::GetOrCreateLocalTrackAdapter(
MediaStreamComponent* component) { … }
size_t WebRtcMediaStreamTrackAdapterMap::GetLocalTrackCount() const { … }
std::unique_ptr<WebRtcMediaStreamTrackAdapterMap::AdapterRef>
WebRtcMediaStreamTrackAdapterMap::GetRemoteTrackAdapter(
MediaStreamComponent* component) { … }
std::unique_ptr<WebRtcMediaStreamTrackAdapterMap::AdapterRef>
WebRtcMediaStreamTrackAdapterMap::GetRemoteTrackAdapter(
webrtc::MediaStreamTrackInterface* webrtc_track) { … }
std::unique_ptr<WebRtcMediaStreamTrackAdapterMap::AdapterRef>
WebRtcMediaStreamTrackAdapterMap::GetOrCreateRemoteTrackAdapter(
scoped_refptr<webrtc::MediaStreamTrackInterface> webrtc_track) { … }
size_t WebRtcMediaStreamTrackAdapterMap::GetRemoteTrackCount() const { … }
}