/* * Copyright 2018 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef P2P_DTLS_DTLS_TRANSPORT_FACTORY_H_ #define P2P_DTLS_DTLS_TRANSPORT_FACTORY_H_ #include #include "api/crypto/crypto_options.h" #include "api/ice_transport_interface.h" #include "api/scoped_refptr.h" #include "rtc_base/ssl_stream_adapter.h" namespace webrtc { class DtlsTransportInternal; // This interface is used to create DTLS transports. The external transports // can be injected into the JsepTransportController through it. // // TODO(qingsi): Remove this factory in favor of one that produces // DtlsTransportInterface given by the public API if this is going to be // injectable. class DtlsTransportFactory { public: virtual ~DtlsTransportFactory() = default; virtual std::unique_ptr CreateDtlsTransport( scoped_refptr ice, const CryptoOptions& crypto_options, SSLProtocolVersion max_version) = 0; }; } // namespace webrtc #endif // P2P_DTLS_DTLS_TRANSPORT_FACTORY_H_