| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // DtlsTransportInternal is an internal interface that does DTLS, also | 32 // DtlsTransportInternal is an internal interface that does DTLS, also |
| 33 // negotiating SRTP crypto suites so that it may be used for DTLS-SRTP. | 33 // negotiating SRTP crypto suites so that it may be used for DTLS-SRTP. |
| 34 // | 34 // |
| 35 // Once the public interface is supported, | 35 // Once the public interface is supported, |
| 36 // (https://www.w3.org/TR/webrtc/#rtcdtlstransport-interface) | 36 // (https://www.w3.org/TR/webrtc/#rtcdtlstransport-interface) |
| 37 // the DtlsTransportInterface will be split from this class. | 37 // the DtlsTransportInterface will be split from this class. |
| 38 class DtlsTransportInternal : public rtc::PacketTransportInternal { | 38 class DtlsTransportInternal : public rtc::PacketTransportInternal { |
| 39 public: | 39 public: |
| 40 virtual ~DtlsTransportInternal() {} | 40 virtual ~DtlsTransportInternal() {} |
| 41 | 41 |
| 42 virtual const rtc::CryptoOptions& crypto_options() const = 0; |
| 43 |
| 42 virtual DtlsTransportState dtls_state() const = 0; | 44 virtual DtlsTransportState dtls_state() const = 0; |
| 43 | 45 |
| 44 virtual const std::string& transport_name() const = 0; | 46 virtual const std::string& transport_name() const = 0; |
| 45 | 47 |
| 46 virtual int component() const = 0; | 48 virtual int component() const = 0; |
| 47 | 49 |
| 48 virtual bool IsDtlsActive() const = 0; | 50 virtual bool IsDtlsActive() const = 0; |
| 49 | 51 |
| 50 virtual bool GetSslRole(rtc::SSLRole* role) const = 0; | 52 virtual bool GetSslRole(rtc::SSLRole* role) const = 0; |
| 51 | 53 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 protected: | 101 protected: |
| 100 DtlsTransportInternal() {} | 102 DtlsTransportInternal() {} |
| 101 | 103 |
| 102 private: | 104 private: |
| 103 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportInternal); | 105 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportInternal); |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 } // namespace cricket | 108 } // namespace cricket |
| 107 | 109 |
| 108 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ | 110 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ |
| OLD | NEW |