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

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

Issue 1351803002: Exposing RtpSenders and RtpReceivers from PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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/rtpreceiverinterface.h
diff --git a/talk/app/webrtc/mediacontroller.h b/talk/app/webrtc/rtpreceiverinterface.h
similarity index 69%
copy from talk/app/webrtc/mediacontroller.h
copy to talk/app/webrtc/rtpreceiverinterface.h
index 68798515d00984c586a88fbf8346f75ca96f309b..989a86b54b9c397de06e66c2aa63e63e4dd283fd 100644
--- a/talk/app/webrtc/mediacontroller.h
+++ b/talk/app/webrtc/rtpreceiverinterface.h
@@ -25,25 +25,30 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef TALK_APP_WEBRTC_MEDIACONTROLLER_H_
-#define TALK_APP_WEBRTC_MEDIACONTROLLER_H_
+// This file contains interfaces for RtpReceivers
+// http://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface
-#include "webrtc/base/thread.h"
+#ifndef TALK_APP_WEBRTC_RTPRECEIVERINTERFACE_H_
+#define TALK_APP_WEBRTC_RTPRECEIVERINTERFACE_H_
+
+#include <string>
+
+#include "talk/app/webrtc/mediastreaminterface.h"
+#include "webrtc/base/refcount.h"
+#include "webrtc/base/scoped_ref_ptr.h"
namespace webrtc {
-class Call;
-class VoiceEngine;
-// The MediaController currently owns shared state between media channels, but
-// in the future will create and own RtpSenders and RtpReceivers.
-class MediaControllerInterface {
+class RtpReceiverInterface : public rtc::RefCountInterface {
public:
- static MediaControllerInterface* Create(rtc::Thread* worker_thread,
- webrtc::VoiceEngine* voice_engine);
+ virtual rtc::scoped_refptr<MediaStreamTrackInterface> track() const = 0;
+ virtual std::string mid() const = 0;
+ virtual void Stop() = 0;
- virtual ~MediaControllerInterface() {}
- virtual webrtc::Call* call_w() = 0;
+ protected:
+ virtual ~RtpReceiverInterface() {}
};
+
} // namespace webrtc
-#endif // TALK_APP_WEBRTC_MEDIACONTROLLER_H_
+#endif // TALK_APP_WEBRTC_RTPRECEIVERINTERFACE_H_

Powered by Google App Engine
This is Rietveld 408576698