OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 #include "webrtc/api/rtpsenderinterface.h" | 83 #include "webrtc/api/rtpsenderinterface.h" |
84 #include "webrtc/api/stats/rtcstatscollectorcallback.h" | 84 #include "webrtc/api/stats/rtcstatscollectorcallback.h" |
85 #include "webrtc/api/statstypes.h" | 85 #include "webrtc/api/statstypes.h" |
86 #include "webrtc/api/umametrics.h" | 86 #include "webrtc/api/umametrics.h" |
87 #include "webrtc/base/fileutils.h" | 87 #include "webrtc/base/fileutils.h" |
88 #include "webrtc/base/network.h" | 88 #include "webrtc/base/network.h" |
89 #include "webrtc/base/rtccertificate.h" | 89 #include "webrtc/base/rtccertificate.h" |
90 #include "webrtc/base/rtccertificategenerator.h" | 90 #include "webrtc/base/rtccertificategenerator.h" |
91 #include "webrtc/base/socketaddress.h" | 91 #include "webrtc/base/socketaddress.h" |
92 #include "webrtc/base/sslstreamadapter.h" | 92 #include "webrtc/base/sslstreamadapter.h" |
| 93 #include "webrtc/call/callfactoryinterface.h" |
| 94 #include "webrtc/logging/rtc_event_log/rtc_event_log_factory_interface.h" |
93 #include "webrtc/media/base/mediachannel.h" | 95 #include "webrtc/media/base/mediachannel.h" |
94 #include "webrtc/media/base/videocapturer.h" | 96 #include "webrtc/media/base/videocapturer.h" |
95 #include "webrtc/p2p/base/portallocator.h" | 97 #include "webrtc/p2p/base/portallocator.h" |
96 | 98 |
97 namespace rtc { | 99 namespace rtc { |
98 class SSLIdentity; | 100 class SSLIdentity; |
99 class Thread; | 101 class Thread; |
100 } | 102 } |
101 | 103 |
102 namespace cricket { | 104 namespace cricket { |
| 105 class MediaEngineInterface; |
103 class WebRtcVideoDecoderFactory; | 106 class WebRtcVideoDecoderFactory; |
104 class WebRtcVideoEncoderFactory; | 107 class WebRtcVideoEncoderFactory; |
105 } | 108 } |
106 | 109 |
107 namespace webrtc { | 110 namespace webrtc { |
108 class AudioDeviceModule; | 111 class AudioDeviceModule; |
109 class AudioMixer; | 112 class AudioMixer; |
| 113 class CallFactoryInterface; |
110 class MediaConstraintsInterface; | 114 class MediaConstraintsInterface; |
111 | 115 |
112 // MediaStream container interface. | 116 // MediaStream container interface. |
113 class StreamCollectionInterface : public rtc::RefCountInterface { | 117 class StreamCollectionInterface : public rtc::RefCountInterface { |
114 public: | 118 public: |
115 // TODO(ronghuawu): Update the function names to c++ style, e.g. find -> Find. | 119 // TODO(ronghuawu): Update the function names to c++ style, e.g. find -> Find. |
116 virtual size_t count() = 0; | 120 virtual size_t count() = 0; |
117 virtual MediaStreamInterface* at(size_t index) = 0; | 121 virtual MediaStreamInterface* at(size_t index) = 0; |
118 virtual MediaStreamInterface* find(const std::string& label) = 0; | 122 virtual MediaStreamInterface* find(const std::string& label) = 0; |
119 virtual MediaStreamTrackInterface* FindAudioTrack( | 123 virtual MediaStreamTrackInterface* FindAudioTrack( |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 rtc::Thread* worker_and_network_thread, | 1123 rtc::Thread* worker_and_network_thread, |
1120 rtc::Thread* signaling_thread, | 1124 rtc::Thread* signaling_thread, |
1121 AudioDeviceModule* default_adm, | 1125 AudioDeviceModule* default_adm, |
1122 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 1126 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
1123 cricket::WebRtcVideoDecoderFactory* decoder_factory) { | 1127 cricket::WebRtcVideoDecoderFactory* decoder_factory) { |
1124 return CreatePeerConnectionFactory( | 1128 return CreatePeerConnectionFactory( |
1125 worker_and_network_thread, worker_and_network_thread, signaling_thread, | 1129 worker_and_network_thread, worker_and_network_thread, signaling_thread, |
1126 default_adm, encoder_factory, decoder_factory); | 1130 default_adm, encoder_factory, decoder_factory); |
1127 } | 1131 } |
1128 | 1132 |
| 1133 rtc::scoped_refptr<PeerConnectionFactoryInterface> |
| 1134 CreateModularPeerConnectionFactory( |
| 1135 rtc::Thread* network_thread, |
| 1136 rtc::Thread* worker_thread, |
| 1137 rtc::Thread* signaling_thread, |
| 1138 AudioDeviceModule* default_adm, |
| 1139 rtc::scoped_refptr<AudioEncoderFactory> audio_encoder_factory, |
| 1140 rtc::scoped_refptr<AudioDecoderFactory> audio_decoder_factory, |
| 1141 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, |
| 1142 cricket::WebRtcVideoDecoderFactory* video_decoder_factory, |
| 1143 rtc::scoped_refptr<AudioMixer> audio_mixer, |
| 1144 std::unique_ptr<cricket::MediaEngineInterface> media_engine, |
| 1145 std::unique_ptr<CallFactoryInterface> call_factory, |
| 1146 std::unique_ptr<RtcEventLogFactoryInterface> event_log_factory); |
| 1147 |
1129 } // namespace webrtc | 1148 } // namespace webrtc |
1130 | 1149 |
1131 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 1150 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |