Update RTCStatsCollector to work with RtpTransceivers

Bug: webrtc:8764
Change-Id: I8b442345869eb6d8b65fd12241ed7cb6e7d7ce3d
Reviewed-on: https://webrtc-review.googlesource.com/49580
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22026}
This commit is contained in:
Steve Anton
2018-02-14 16:07:42 -08:00
committed by Commit Bot
parent ae8a90a1d4
commit 56bae8ded3
24 changed files with 693 additions and 479 deletions

View File

@ -120,14 +120,6 @@ class RtpReceiverInterface : public rtc::RefCountInterface {
// content::FakeRtpReceiver in Chromium.
virtual std::vector<RtpSource> GetSources() const;
// TODO(hta): Remove default implementation or move function to
// an internal interface. content::FakeRtpReceiver in Chromium needs this.
// Returns an ID that changes if the attached track changes, but
// otherwise remains constant. Used to generate IDs for stats.
// The special value zero means that no track is attached.
virtual int AttachmentId() const;
protected:
~RtpReceiverInterface() override = default;
};
@ -146,7 +138,6 @@ BEGIN_SIGNALING_PROXY_MAP(RtpReceiver)
PROXY_METHOD1(bool, SetParameters, const RtpParameters&)
PROXY_METHOD1(void, SetObserver, RtpReceiverObserverInterface*);
PROXY_CONSTMETHOD0(std::vector<RtpSource>, GetSources);
PROXY_CONSTMETHOD0(int, AttachmentId);
END_PROXY_MAP()
} // namespace webrtc