tor-browser

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

rtp_transport_config.h (1434B)


      1 /*
      2 *  Copyright (c) 2021 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 CALL_RTP_TRANSPORT_CONFIG_H_
     12 #define CALL_RTP_TRANSPORT_CONFIG_H_
     13 
     14 #include <optional>
     15 
     16 #include "api/environment/environment.h"
     17 #include "api/network_state_predictor.h"
     18 #include "api/transport/bitrate_settings.h"
     19 #include "api/transport/network_control.h"
     20 #include "api/units/time_delta.h"
     21 
     22 namespace webrtc {
     23 
     24 struct RtpTransportConfig {
     25  Environment env;
     26 
     27  // Bitrate config used until valid bitrate estimates are calculated. Also
     28  // used to cap total bitrate used. This comes from the remote connection.
     29  BitrateConstraints bitrate_config;
     30 
     31  // NetworkStatePredictor to use for this call.
     32  NetworkStatePredictorFactoryInterface* network_state_predictor_factory =
     33      nullptr;
     34 
     35  // Network controller factory to use for this call.
     36  NetworkControllerFactoryInterface* network_controller_factory = nullptr;
     37 
     38  // The burst interval of the pacer, see TaskQueuePacedSender constructor.
     39  std::optional<TimeDelta> pacer_burst_interval;
     40 };
     41 }  // namespace webrtc
     42 
     43 #endif  // CALL_RTP_TRANSPORT_CONFIG_H_