Index: talk/app/webrtc/mediacontroller.h |
diff --git a/talk/app/webrtc/mediacontroller.h b/talk/app/webrtc/mediacontroller.h |
index 68798515d00984c586a88fbf8346f75ca96f309b..bae89775bfaa8dffd9516821090cd3ff98c65734 100644 |
--- a/talk/app/webrtc/mediacontroller.h |
+++ b/talk/app/webrtc/mediacontroller.h |
@@ -29,16 +29,29 @@ |
#define TALK_APP_WEBRTC_MEDIACONTROLLER_H_ |
#include "webrtc/base/thread.h" |
+#include "webrtc/common_types.h" |
+#include "webrtc/call.h" |
+ |
+namespace cricket { |
+class TransportChannel; |
+} // namespace cricket |
pthatcher1
2015/10/09 20:57:48
You don't need this any more, do you?
stefan-webrtc
2015/10/10 15:32:51
Done.
|
namespace webrtc { |
-class Call; |
class VoiceEngine; |
+class CallFactory { |
+ public: |
+ virtual Call* CreateCall(const webrtc::Call::Config& config) { |
+ return webrtc::Call::Create(config); |
+ } |
+}; |
+ |
// The MediaController currently owns shared state between media channels, but |
// in the future will create and own RtpSenders and RtpReceivers. |
class MediaControllerInterface { |
public: |
- static MediaControllerInterface* Create(rtc::Thread* worker_thread, |
+ static MediaControllerInterface* Create(CallFactory* call_factory, |
+ rtc::Thread* worker_thread, |
webrtc::VoiceEngine* voice_engine); |
virtual ~MediaControllerInterface() {} |