tor-browser

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

peer_connection_interface.cc (2327B)


      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 #include "api/peer_connection_interface.h"
     12 
     13 #include <vector>
     14 
     15 #include "api/candidate.h"
     16 #include "pc/media_factory.h"
     17 #include "rtc_base/checks.h"
     18 
     19 namespace webrtc {
     20 
     21 PeerConnectionInterface::IceServer::IceServer() = default;
     22 PeerConnectionInterface::IceServer::IceServer(const IceServer& rhs) = default;
     23 PeerConnectionInterface::IceServer::~IceServer() = default;
     24 
     25 PeerConnectionInterface::RTCConfiguration::RTCConfiguration() = default;
     26 
     27 PeerConnectionInterface::RTCConfiguration::RTCConfiguration(
     28    const RTCConfiguration& rhs) = default;
     29 
     30 PeerConnectionInterface::RTCConfiguration::RTCConfiguration(
     31    RTCConfigurationType type) {
     32  if (type == RTCConfigurationType::kAggressive) {
     33    // These parameters are also defined in Java and IOS configurations,
     34    // so their values may be overwritten by the Java or IOS configuration.
     35    bundle_policy = kBundlePolicyMaxBundle;
     36    rtcp_mux_policy = kRtcpMuxPolicyRequire;
     37    ice_connection_receiving_timeout = kAggressiveIceConnectionReceivingTimeout;
     38 
     39    // These parameters are not defined in Java or IOS configuration,
     40    // so their values will not be overwritten.
     41    enable_ice_renomination = true;
     42    redetermine_role_on_ice_restart = false;
     43  }
     44 }
     45 
     46 PeerConnectionInterface::RTCConfiguration::~RTCConfiguration() = default;
     47 
     48 PeerConnectionDependencies::PeerConnectionDependencies(
     49    PeerConnectionObserver* observer_in)
     50    : observer(observer_in) {}
     51 
     52 PeerConnectionDependencies::PeerConnectionDependencies(
     53    PeerConnectionDependencies&&) = default;
     54 
     55 PeerConnectionDependencies::~PeerConnectionDependencies() = default;
     56 
     57 PeerConnectionFactoryDependencies::PeerConnectionFactoryDependencies() =
     58    default;
     59 
     60 PeerConnectionFactoryDependencies::PeerConnectionFactoryDependencies(
     61    PeerConnectionFactoryDependencies&&) = default;
     62 
     63 PeerConnectionFactoryDependencies::~PeerConnectionFactoryDependencies() =
     64    default;
     65 
     66 }  // namespace webrtc