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 #include "webrtc/api/mediacontroller.h" | 11 #include "webrtc/api/mediacontroller.h" |
12 | 12 |
13 #include "webrtc/base/bind.h" | 13 #include "webrtc/base/bind.h" |
14 #include "webrtc/base/checks.h" | 14 #include "webrtc/base/checks.h" |
| 15 #include "webrtc/base/constructormagic.h" |
15 #include "webrtc/call.h" | 16 #include "webrtc/call.h" |
16 #include "webrtc/pc/channelmanager.h" | 17 #include "webrtc/pc/channelmanager.h" |
17 #include "webrtc/media/base/mediachannel.h" | 18 #include "webrtc/media/base/mediachannel.h" |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
21 const int kMinBandwidthBps = 30000; | 22 const int kMinBandwidthBps = 30000; |
22 const int kStartBandwidthBps = 300000; | 23 const int kStartBandwidthBps = 300000; |
23 const int kMaxBandwidthBps = 2000000; | 24 const int kMaxBandwidthBps = 2000000; |
24 | 25 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 83 |
83 namespace webrtc { | 84 namespace webrtc { |
84 | 85 |
85 MediaControllerInterface* MediaControllerInterface::Create( | 86 MediaControllerInterface* MediaControllerInterface::Create( |
86 const cricket::MediaConfig& config, | 87 const cricket::MediaConfig& config, |
87 rtc::Thread* worker_thread, | 88 rtc::Thread* worker_thread, |
88 cricket::ChannelManager* channel_manager) { | 89 cricket::ChannelManager* channel_manager) { |
89 return new MediaController(config, worker_thread, channel_manager); | 90 return new MediaController(config, worker_thread, channel_manager); |
90 } | 91 } |
91 } // namespace webrtc | 92 } // namespace webrtc |
OLD | NEW |