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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 // Gets the local RTCCertificate used for DTLS. | 120 // Gets the local RTCCertificate used for DTLS. |
121 virtual rtc::scoped_refptr<rtc::RTCCertificate> | 121 virtual rtc::scoped_refptr<rtc::RTCCertificate> |
122 GetLocalCertificate() const = 0; | 122 GetLocalCertificate() const = 0; |
123 | 123 |
124 // Gets a copy of the remote side's SSL certificate, owned by the caller. | 124 // Gets a copy of the remote side's SSL certificate, owned by the caller. |
125 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; | 125 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; |
126 | 126 |
127 // Allows key material to be extracted for external encryption. | 127 // Allows key material to be extracted for external encryption. |
128 virtual bool ExportKeyingMaterial(const std::string& label, | 128 virtual bool ExportKeyingMaterial(const std::string& label, |
129 const uint8* context, | 129 const uint8_t* context, |
130 size_t context_len, | 130 size_t context_len, |
131 bool use_context, | 131 bool use_context, |
132 uint8* result, | 132 uint8_t* result, |
133 size_t result_len) = 0; | 133 size_t result_len) = 0; |
134 | 134 |
135 // Signalled each time a packet is received on this channel. | 135 // Signalled each time a packet is received on this channel. |
136 sigslot::signal5<TransportChannel*, const char*, | 136 sigslot::signal5<TransportChannel*, const char*, |
137 size_t, const rtc::PacketTime&, int> SignalReadPacket; | 137 size_t, const rtc::PacketTime&, int> SignalReadPacket; |
138 | 138 |
139 // This signal occurs when there is a change in the way that packets are | 139 // This signal occurs when there is a change in the way that packets are |
140 // being routed, i.e. to a different remote location. The candidate | 140 // being routed, i.e. to a different remote location. The candidate |
141 // indicates where and how we are currently sending media. | 141 // indicates where and how we are currently sending media. |
142 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; | 142 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; |
143 | 143 |
(...skipping 19 matching lines...) Expand all Loading... |
163 int component_; | 163 int component_; |
164 bool writable_; | 164 bool writable_; |
165 bool receiving_; | 165 bool receiving_; |
166 | 166 |
167 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); | 167 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace cricket | 170 } // namespace cricket |
171 | 171 |
172 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ | 172 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ |
OLD | NEW |