| 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 |
| 11 #ifndef WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ | 11 #ifndef WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ |
| 12 #define WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ | 12 #define WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/base/sslstreamadapter.h" | 18 #include "webrtc/base/sslstreamadapter.h" |
| 19 #include "webrtc/base/stringencode.h" |
| 19 #include "webrtc/p2p/base/icetransportinternal.h" | 20 #include "webrtc/p2p/base/icetransportinternal.h" |
| 20 #include "webrtc/p2p/base/jseptransport.h" | 21 #include "webrtc/p2p/base/jseptransport.h" |
| 21 #include "webrtc/p2p/base/packettransportinternal.h" | 22 #include "webrtc/p2p/base/packettransportinternal.h" |
| 22 | 23 |
| 23 namespace cricket { | 24 namespace cricket { |
| 24 | 25 |
| 25 enum PacketFlags { | 26 enum PacketFlags { |
| 26 PF_NORMAL = 0x00, // A normal packet. | 27 PF_NORMAL = 0x00, // A normal packet. |
| 27 PF_SRTP_BYPASS = 0x01, // An encrypted SRTP packet; bypass any additional | 28 PF_SRTP_BYPASS = 0x01, // An encrypted SRTP packet; bypass any additional |
| 28 // crypto provided by the transport (e.g. DTLS) | 29 // crypto provided by the transport (e.g. DTLS) |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Expose the underneath IceTransport. | 91 // Expose the underneath IceTransport. |
| 91 virtual IceTransportInternal* ice_transport() = 0; | 92 virtual IceTransportInternal* ice_transport() = 0; |
| 92 | 93 |
| 93 sigslot::signal2<DtlsTransportInternal*, DtlsTransportState> SignalDtlsState; | 94 sigslot::signal2<DtlsTransportInternal*, DtlsTransportState> SignalDtlsState; |
| 94 | 95 |
| 95 // Emitted whenever the Dtls handshake failed on some transport channel. | 96 // Emitted whenever the Dtls handshake failed on some transport channel. |
| 96 sigslot::signal1<rtc::SSLHandshakeError> SignalDtlsHandshakeError; | 97 sigslot::signal1<rtc::SSLHandshakeError> SignalDtlsHandshakeError; |
| 97 | 98 |
| 98 // Debugging description of this transport. | 99 // Debugging description of this transport. |
| 99 std::string debug_name() const override { | 100 std::string debug_name() const override { |
| 100 return transport_name() + " " + std::to_string(component()); | 101 return transport_name() + " " + rtc::ToString(component()); |
| 101 } | 102 } |
| 102 | 103 |
| 103 protected: | 104 protected: |
| 104 DtlsTransportInternal() {} | 105 DtlsTransportInternal() {} |
| 105 | 106 |
| 106 private: | 107 private: |
| 107 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportInternal); | 108 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportInternal); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 } // namespace cricket | 111 } // namespace cricket |
| 111 | 112 |
| 112 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ | 113 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ |
| OLD | NEW |