Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: talk/app/webrtc/peerconnectioninterface.h

Issue 1351803002: Exposing RtpSenders and RtpReceivers from PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Return bool from RtpSenderInterface::SetTrack. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: talk/app/webrtc/peerconnectioninterface.h
diff --git a/talk/app/webrtc/peerconnectioninterface.h b/talk/app/webrtc/peerconnectioninterface.h
index ca853385e6327fdcad52014b32abc115685e80c1..b2bcbd12a55638eb87a5acede8560ed1ef0a527c 100644
--- a/talk/app/webrtc/peerconnectioninterface.h
+++ b/talk/app/webrtc/peerconnectioninterface.h
@@ -77,6 +77,8 @@
#include "talk/app/webrtc/dtlsidentitystore.h"
#include "talk/app/webrtc/jsep.h"
#include "talk/app/webrtc/mediastreaminterface.h"
+#include "talk/app/webrtc/rtpreceiverinterface.h"
+#include "talk/app/webrtc/rtpsenderinterface.h"
#include "talk/app/webrtc/statstypes.h"
#include "talk/app/webrtc/umametrics.h"
#include "webrtc/base/fileutils.h"
@@ -146,6 +148,9 @@ class MetricsObserverInterface : public rtc::RefCountInterface {
};
typedef MetricsObserverInterface UMAObserver;
+typedef std::vector<rtc::scoped_refptr<RtpSenderInterface>> RtpSenderRefptrs;
+typedef std::vector<rtc::scoped_refptr<RtpReceiverInterface>>
+ RtpReceiverRefptrs;
pthatcher1 2015/09/24 06:32:29 As mentioned elsewhere, I think we should not have
Taylor Brandstetter 2015/09/24 20:54:20 Done.
class PeerConnectionInterface : public rtc::RefCountInterface {
public:
@@ -322,6 +327,10 @@ class PeerConnectionInterface : public rtc::RefCountInterface {
virtual rtc::scoped_refptr<DtmfSenderInterface> CreateDtmfSender(
AudioTrackInterface* track) = 0;
+ virtual RtpSenderRefptrs GetSenders() const = 0;
+
+ virtual RtpReceiverRefptrs GetReceivers() const = 0;
+
virtual bool GetStats(StatsObserver* observer,
MediaStreamTrackInterface* track,
StatsOutputLevel level) = 0;

Powered by Google App Engine
This is Rietveld 408576698