tor-browser

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

ice_transport_factory.h (1217B)


      1 /*
      2 *  Copyright 2019 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_ICE_TRANSPORT_FACTORY_H_
     12 #define API_ICE_TRANSPORT_FACTORY_H_
     13 
     14 #include "api/ice_transport_interface.h"
     15 #include "api/scoped_refptr.h"
     16 #include "rtc_base/system/rtc_export.h"
     17 
     18 namespace webrtc {
     19 
     20 // Static factory for an IceTransport object that can be created
     21 // without using a PeerConnection.
     22 // The returned object must be accessed and destroyed on the thread that
     23 // created it.
     24 // `init.port_allocator()` is required and must outlive the created
     25 //     IceTransportInterface object.
     26 // `init.async_resolver_factory()` and `init.event_log()` are optional, but if
     27 //     provided must outlive the created IceTransportInterface object.
     28 RTC_EXPORT scoped_refptr<IceTransportInterface> CreateIceTransport(
     29    IceTransportInit);
     30 
     31 }  // namespace webrtc
     32 
     33 #endif  // API_ICE_TRANSPORT_FACTORY_H_