OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // Gets the local RTCCertificate used for DTLS. | 109 // Gets the local RTCCertificate used for DTLS. |
110 virtual rtc::scoped_refptr<rtc::RTCCertificate> | 110 virtual rtc::scoped_refptr<rtc::RTCCertificate> |
111 GetLocalCertificate() const = 0; | 111 GetLocalCertificate() const = 0; |
112 | 112 |
113 // Gets a copy of the remote side's SSL certificate, owned by the caller. | 113 // Gets a copy of the remote side's SSL certificate, owned by the caller. |
114 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; | 114 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; |
115 | 115 |
116 // Allows key material to be extracted for external encryption. | 116 // Allows key material to be extracted for external encryption. |
117 virtual bool ExportKeyingMaterial(const std::string& label, | 117 virtual bool ExportKeyingMaterial(const std::string& label, |
118 const uint8* context, | 118 const uint8_t* context, |
119 size_t context_len, | 119 size_t context_len, |
120 bool use_context, | 120 bool use_context, |
121 uint8* result, | 121 uint8_t* result, |
122 size_t result_len) = 0; | 122 size_t result_len) = 0; |
123 | 123 |
124 // Signalled each time a packet is received on this channel. | 124 // Signalled each time a packet is received on this channel. |
125 sigslot::signal5<TransportChannel*, const char*, | 125 sigslot::signal5<TransportChannel*, const char*, |
126 size_t, const rtc::PacketTime&, int> SignalReadPacket; | 126 size_t, const rtc::PacketTime&, int> SignalReadPacket; |
127 | 127 |
128 // This signal occurs when there is a change in the way that packets are | 128 // This signal occurs when there is a change in the way that packets are |
129 // being routed, i.e. to a different remote location. The candidate | 129 // being routed, i.e. to a different remote location. The candidate |
130 // indicates where and how we are currently sending media. | 130 // indicates where and how we are currently sending media. |
131 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; | 131 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; |
132 | 132 |
(...skipping 20 matching lines...) Expand all Loading... |
153 int component_; | 153 int component_; |
154 bool writable_; | 154 bool writable_; |
155 bool receiving_; | 155 bool receiving_; |
156 | 156 |
157 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); | 157 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); |
158 }; | 158 }; |
159 | 159 |
160 } // namespace cricket | 160 } // namespace cricket |
161 | 161 |
162 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ | 162 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ |
OLD | NEW |