| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef TALK_APP_WEBRTC_MEDIACONTROLLER_H_ | 28 #ifndef TALK_APP_WEBRTC_MEDIACONTROLLER_H_ |
| 29 #define TALK_APP_WEBRTC_MEDIACONTROLLER_H_ | 29 #define TALK_APP_WEBRTC_MEDIACONTROLLER_H_ |
| 30 | 30 |
| 31 #include "webrtc/base/thread.h" | 31 #include "webrtc/base/thread.h" |
| 32 | 32 |
| 33 namespace cricket { | 33 namespace cricket { |
| 34 class ChannelManager; | 34 class ChannelManager; |
| 35 struct MediaConfig; |
| 35 } // namespace cricket | 36 } // namespace cricket |
| 36 | 37 |
| 37 namespace webrtc { | 38 namespace webrtc { |
| 38 class Call; | 39 class Call; |
| 39 class VoiceEngine; | 40 class VoiceEngine; |
| 40 | 41 |
| 41 // The MediaController currently owns shared state between media channels, but | 42 // The MediaController currently owns shared state between media channels, but |
| 42 // in the future will create and own RtpSenders and RtpReceivers. | 43 // in the future will create and own RtpSenders and RtpReceivers. |
| 43 class MediaControllerInterface { | 44 class MediaControllerInterface { |
| 44 public: | 45 public: |
| 45 static MediaControllerInterface* Create( | 46 static MediaControllerInterface* Create( |
| 47 const cricket::MediaConfig& config, |
| 46 rtc::Thread* worker_thread, | 48 rtc::Thread* worker_thread, |
| 47 cricket::ChannelManager* channel_manager); | 49 cricket::ChannelManager* channel_manager); |
| 48 | 50 |
| 49 virtual ~MediaControllerInterface() {} | 51 virtual ~MediaControllerInterface() {} |
| 50 virtual webrtc::Call* call_w() = 0; | 52 virtual webrtc::Call* call_w() = 0; |
| 51 virtual cricket::ChannelManager* channel_manager() const = 0; | 53 virtual cricket::ChannelManager* channel_manager() const = 0; |
| 54 virtual const cricket::MediaConfig& config() const = 0; |
| 52 }; | 55 }; |
| 53 } // namespace webrtc | 56 } // namespace webrtc |
| 54 | 57 |
| 55 #endif // TALK_APP_WEBRTC_MEDIACONTROLLER_H_ | 58 #endif // TALK_APP_WEBRTC_MEDIACONTROLLER_H_ |
| OLD | NEW |