tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

create_peerconnection_factory.h (2094B)


      1 /*
      2 *  Copyright 2018 The WebRTC project authors. All Rights Reserved.
      3 *
      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
      6 *  tree. An additional intellectual property rights grant can be found
      7 *  in the file PATENTS.  All contributing project authors may
      8 *  be found in the AUTHORS file in the root of the source tree.
      9 */
     10 
     11 #ifndef API_CREATE_PEERCONNECTION_FACTORY_H_
     12 #define API_CREATE_PEERCONNECTION_FACTORY_H_
     13 // IWYU pragma: no_include "rtc_base/thread.h"
     14 
     15 #include <memory>
     16 
     17 #include "api/audio/audio_device.h"
     18 #include "api/audio/audio_mixer.h"
     19 #include "api/audio/audio_processing.h"
     20 #include "api/audio_codecs/audio_decoder_factory.h"
     21 #include "api/audio_codecs/audio_encoder_factory.h"
     22 #include "api/field_trials_view.h"
     23 #include "api/peer_connection_interface.h"
     24 #include "api/scoped_refptr.h"
     25 #include "api/video_codecs/video_decoder_factory.h"
     26 #include "api/video_codecs/video_encoder_factory.h"
     27 #include "rtc_base/system/rtc_export.h"
     28 #include "rtc_base/thread.h"
     29 
     30 namespace webrtc {
     31 class AudioFrameProcessor;
     32 
     33 // Create a new instance of PeerConnectionFactoryInterface with optional video
     34 // codec factories. These video factories represents all video codecs, i.e. no
     35 // extra internal video codecs will be added.
     36 RTC_EXPORT scoped_refptr<PeerConnectionFactoryInterface>
     37 CreatePeerConnectionFactory(
     38    Thread* network_thread,
     39    Thread* worker_thread,
     40    Thread* signaling_thread,
     41    scoped_refptr<AudioDeviceModule> default_adm,
     42    scoped_refptr<AudioEncoderFactory> audio_encoder_factory,
     43    scoped_refptr<AudioDecoderFactory> audio_decoder_factory,
     44    std::unique_ptr<VideoEncoderFactory> video_encoder_factory,
     45    std::unique_ptr<VideoDecoderFactory> video_decoder_factory,
     46    scoped_refptr<AudioMixer> audio_mixer,
     47    scoped_refptr<AudioProcessing> audio_processing,
     48    std::unique_ptr<AudioFrameProcessor> audio_frame_processor = nullptr,
     49    std::unique_ptr<FieldTrialsView> field_trials = nullptr);
     50 
     51 }  // namespace webrtc
     52 
     53 #endif  // API_CREATE_PEERCONNECTION_FACTORY_H_