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

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

Issue 1269863005: MediaController/Call instantiation. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: comments 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
« no previous file with comments | « no previous file | talk/app/webrtc/mediacontroller.cc » ('j') | talk/app/webrtc/mediacontroller.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/mediacontroller.h
diff --git a/talk/app/webrtc/mediacontroller.h b/talk/app/webrtc/mediacontroller.h
index 1191206e18dbf9a7f035c9b95761641db2bcf7f3..d31ce4dc0ae338896285d500d45e0dad4b64526b 100644
--- a/talk/app/webrtc/mediacontroller.h
+++ b/talk/app/webrtc/mediacontroller.h
@@ -25,5 +25,25 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// Place holder file to be able to update Chrome's libjingle.gyp before the real
-// implementation goes in.
+#ifndef TALK_APP_WEBRTC_MEDIACONTROLLER_H_
+#define TALK_APP_WEBRTC_MEDIACONTROLLER_H_
+
+#include "webrtc/base/thread.h"
+
+namespace webrtc {
+class Call;
+class VoiceEngine;
+
+// MediaController currently owns shared state between media channels, but in
+// the future will create and own RtpSenders and RtpReceivers.
+class MediaController {
pthatcher1 2015/09/09 07:27:43 If this is an interface, it should be called Media
the sun 2015/09/09 08:24:51 Doh! Note to self: re-read the style guide.
+ public:
+ static MediaController* Create(rtc::Thread* worker_thread,
+ webrtc::VoiceEngine* voice_engine);
+
+ virtual ~MediaController() {}
+ virtual webrtc::Call* call_w() = 0;
+};
+} // namespace webrtc
+
+#endif // TALK_APP_WEBRTC_MEDIACONTROLLER_H_
« no previous file with comments | « no previous file | talk/app/webrtc/mediacontroller.cc » ('j') | talk/app/webrtc/mediacontroller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698