OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 void MaybeStartGathering() override { channel_->MaybeStartGathering(); } | 190 void MaybeStartGathering() override { channel_->MaybeStartGathering(); } |
191 | 191 |
192 IceGatheringState gathering_state() const override { | 192 IceGatheringState gathering_state() const override { |
193 return channel_->gathering_state(); | 193 return channel_->gathering_state(); |
194 } | 194 } |
195 | 195 |
196 void AddRemoteCandidate(const Candidate& candidate) override { | 196 void AddRemoteCandidate(const Candidate& candidate) override { |
197 channel_->AddRemoteCandidate(candidate); | 197 channel_->AddRemoteCandidate(candidate); |
198 } | 198 } |
199 | 199 |
200 void SetReceivingTimeout(int receiving_timeout_ms) override { | 200 void SetIceConfig(const IceConfig& config) override { |
201 channel_->SetReceivingTimeout(receiving_timeout_ms); | 201 channel_->SetIceConfig(config); |
202 } | 202 } |
203 | 203 |
204 // Needed by DtlsTransport. | 204 // Needed by DtlsTransport. |
205 TransportChannelImpl* channel() { return channel_; } | 205 TransportChannelImpl* channel() { return channel_; } |
206 | 206 |
207 private: | 207 private: |
208 void OnReadableState(TransportChannel* channel); | 208 void OnReadableState(TransportChannel* channel); |
209 void OnWritableState(TransportChannel* channel); | 209 void OnWritableState(TransportChannel* channel); |
210 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, | 210 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, |
211 const rtc::PacketTime& packet_time, int flags); | 211 const rtc::PacketTime& packet_time, int flags); |
(...skipping 21 matching lines...) Expand all Loading... |
233 rtc::SSLProtocolVersion ssl_max_version_; | 233 rtc::SSLProtocolVersion ssl_max_version_; |
234 rtc::Buffer remote_fingerprint_value_; | 234 rtc::Buffer remote_fingerprint_value_; |
235 std::string remote_fingerprint_algorithm_; | 235 std::string remote_fingerprint_algorithm_; |
236 | 236 |
237 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); | 237 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); |
238 }; | 238 }; |
239 | 239 |
240 } // namespace cricket | 240 } // namespace cricket |
241 | 241 |
242 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ | 242 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ |
OLD | NEW |