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