#include "third_party/blink/renderer/platform/webrtc/track_observer.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_base.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/blink/renderer/platform/wtf/thread_safe_ref_counted.h"
namespace blink {
class TrackObserver::TrackObserverImpl
: public WTF::ThreadSafeRefCounted<TrackObserver::TrackObserverImpl>,
public webrtc::ObserverInterface { … };
TrackObserver::TrackObserver(
const scoped_refptr<base::SingleThreadTaskRunner>& main_thread,
const scoped_refptr<webrtc::MediaStreamTrackInterface>& track)
: … { … }
TrackObserver::~TrackObserver() { … }
void TrackObserver::SetCallback(const OnChangedCallback& callback) { … }
const scoped_refptr<webrtc::MediaStreamTrackInterface>& TrackObserver::track()
const { … }
}