1*d9f75844SAndroid Build Coastguard Worker /* 2*d9f75844SAndroid Build Coastguard Worker * Copyright 2018 The WebRTC project authors. All Rights Reserved. 3*d9f75844SAndroid Build Coastguard Worker * 4*d9f75844SAndroid Build Coastguard Worker * Use of this source code is governed by a BSD-style license 5*d9f75844SAndroid Build Coastguard Worker * that can be found in the LICENSE file in the root of the source 6*d9f75844SAndroid Build Coastguard Worker * tree. An additional intellectual property rights grant can be found 7*d9f75844SAndroid Build Coastguard Worker * in the file PATENTS. All contributing project authors may 8*d9f75844SAndroid Build Coastguard Worker * be found in the AUTHORS file in the root of the source tree. 9*d9f75844SAndroid Build Coastguard Worker */ 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Worker #ifndef API_CREATE_PEERCONNECTION_FACTORY_H_ 12*d9f75844SAndroid Build Coastguard Worker #define API_CREATE_PEERCONNECTION_FACTORY_H_ 13*d9f75844SAndroid Build Coastguard Worker 14*d9f75844SAndroid Build Coastguard Worker #include <memory> 15*d9f75844SAndroid Build Coastguard Worker 16*d9f75844SAndroid Build Coastguard Worker #include "api/audio/audio_mixer.h" 17*d9f75844SAndroid Build Coastguard Worker #include "api/audio_codecs/audio_decoder_factory.h" 18*d9f75844SAndroid Build Coastguard Worker #include "api/audio_codecs/audio_encoder_factory.h" 19*d9f75844SAndroid Build Coastguard Worker #include "api/peer_connection_interface.h" 20*d9f75844SAndroid Build Coastguard Worker #include "api/scoped_refptr.h" 21*d9f75844SAndroid Build Coastguard Worker #include "api/video_codecs/video_decoder_factory.h" 22*d9f75844SAndroid Build Coastguard Worker #include "api/video_codecs/video_encoder_factory.h" 23*d9f75844SAndroid Build Coastguard Worker 24*d9f75844SAndroid Build Coastguard Worker namespace rtc { 25*d9f75844SAndroid Build Coastguard Worker // TODO(bugs.webrtc.org/9987): Move rtc::Thread to api/ or expose a better 26*d9f75844SAndroid Build Coastguard Worker // type. At the moment, rtc::Thread is not part of api/ so it cannot be 27*d9f75844SAndroid Build Coastguard Worker // included in order to avoid to leak internal types. 28*d9f75844SAndroid Build Coastguard Worker class Thread; 29*d9f75844SAndroid Build Coastguard Worker } // namespace rtc 30*d9f75844SAndroid Build Coastguard Worker 31*d9f75844SAndroid Build Coastguard Worker namespace webrtc { 32*d9f75844SAndroid Build Coastguard Worker 33*d9f75844SAndroid Build Coastguard Worker class AudioDeviceModule; 34*d9f75844SAndroid Build Coastguard Worker class AudioFrameProcessor; 35*d9f75844SAndroid Build Coastguard Worker class AudioProcessing; 36*d9f75844SAndroid Build Coastguard Worker 37*d9f75844SAndroid Build Coastguard Worker // Create a new instance of PeerConnectionFactoryInterface with optional video 38*d9f75844SAndroid Build Coastguard Worker // codec factories. These video factories represents all video codecs, i.e. no 39*d9f75844SAndroid Build Coastguard Worker // extra internal video codecs will be added. 40*d9f75844SAndroid Build Coastguard Worker RTC_EXPORT rtc::scoped_refptr<PeerConnectionFactoryInterface> 41*d9f75844SAndroid Build Coastguard Worker CreatePeerConnectionFactory( 42*d9f75844SAndroid Build Coastguard Worker rtc::Thread* network_thread, 43*d9f75844SAndroid Build Coastguard Worker rtc::Thread* worker_thread, 44*d9f75844SAndroid Build Coastguard Worker rtc::Thread* signaling_thread, 45*d9f75844SAndroid Build Coastguard Worker rtc::scoped_refptr<AudioDeviceModule> default_adm, 46*d9f75844SAndroid Build Coastguard Worker rtc::scoped_refptr<AudioEncoderFactory> audio_encoder_factory, 47*d9f75844SAndroid Build Coastguard Worker rtc::scoped_refptr<AudioDecoderFactory> audio_decoder_factory, 48*d9f75844SAndroid Build Coastguard Worker std::unique_ptr<VideoEncoderFactory> video_encoder_factory, 49*d9f75844SAndroid Build Coastguard Worker std::unique_ptr<VideoDecoderFactory> video_decoder_factory, 50*d9f75844SAndroid Build Coastguard Worker rtc::scoped_refptr<AudioMixer> audio_mixer, 51*d9f75844SAndroid Build Coastguard Worker rtc::scoped_refptr<AudioProcessing> audio_processing, 52*d9f75844SAndroid Build Coastguard Worker AudioFrameProcessor* audio_frame_processor = nullptr, 53*d9f75844SAndroid Build Coastguard Worker std::unique_ptr<FieldTrialsView> field_trials = nullptr); 54*d9f75844SAndroid Build Coastguard Worker 55*d9f75844SAndroid Build Coastguard Worker } // namespace webrtc 56*d9f75844SAndroid Build Coastguard Worker 57*d9f75844SAndroid Build Coastguard Worker #endif // API_CREATE_PEERCONNECTION_FACTORY_H_ 58