OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_API_MEDIACONTROLLER_H_ | 11 #ifndef WEBRTC_API_MEDIACONTROLLER_H_ |
12 #define WEBRTC_API_MEDIACONTROLLER_H_ | 12 #define WEBRTC_API_MEDIACONTROLLER_H_ |
13 | 13 |
14 #include "webrtc/base/thread.h" | 14 // Including this file is deprecated. It is no longer part of the public API. |
15 | 15 // This only includes the file in its new location for backwards compatibility. |
16 namespace cricket { | 16 #include "webrtc/pc/mediacontroller.h" |
17 class ChannelManager; | |
18 struct MediaConfig; | |
19 } // namespace cricket | |
20 | |
21 namespace webrtc { | |
22 class Call; | |
23 class VoiceEngine; | |
24 class RtcEventLog; | |
25 | |
26 // The MediaController currently owns shared state between media channels, but | |
27 // in the future will create and own RtpSenders and RtpReceivers. | |
28 class MediaControllerInterface { | |
29 public: | |
30 static MediaControllerInterface* Create( | |
31 const cricket::MediaConfig& config, | |
32 rtc::Thread* worker_thread, | |
33 cricket::ChannelManager* channel_manager, | |
34 webrtc::RtcEventLog* event_log); | |
35 | |
36 virtual ~MediaControllerInterface() {} | |
37 virtual void Close() = 0; | |
38 virtual webrtc::Call* call_w() = 0; | |
39 virtual cricket::ChannelManager* channel_manager() const = 0; | |
40 virtual const cricket::MediaConfig& config() const = 0; | |
41 }; | |
42 } // namespace webrtc | |
43 | 17 |
44 #endif // WEBRTC_API_MEDIACONTROLLER_H_ | 18 #endif // WEBRTC_API_MEDIACONTROLLER_H_ |
OLD | NEW |