Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: webrtc/p2p/base/dtlstransportchannel.h

Issue 1231913003: Add methods to set the ICE connection receiving_timeout values. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/app/webrtc/peerconnectionproxy.h ('k') | webrtc/p2p/base/fakesession.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 virtual void Connect(); 198 virtual void Connect();
199 199
200 virtual void OnSignalingReady() { 200 virtual void OnSignalingReady() {
201 channel_->OnSignalingReady(); 201 channel_->OnSignalingReady();
202 } 202 }
203 virtual void OnCandidate(const Candidate& candidate) { 203 virtual void OnCandidate(const Candidate& candidate) {
204 channel_->OnCandidate(candidate); 204 channel_->OnCandidate(candidate);
205 } 205 }
206 206
207 void SetReceivingTimeout(int receiving_timeout_ms) {
208 channel_->SetReceivingTimeout(receiving_timeout_ms);
209 }
210
207 // Needed by DtlsTransport. 211 // Needed by DtlsTransport.
208 TransportChannelImpl* channel() { return channel_; } 212 TransportChannelImpl* channel() { return channel_; }
209 213
210 private: 214 private:
211 void OnReadableState(TransportChannel* channel); 215 void OnReadableState(TransportChannel* channel);
212 void OnWritableState(TransportChannel* channel); 216 void OnWritableState(TransportChannel* channel);
213 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, 217 void OnReadPacket(TransportChannel* channel, const char* data, size_t size,
214 const rtc::PacketTime& packet_time, int flags); 218 const rtc::PacketTime& packet_time, int flags);
215 void OnReadyToSend(TransportChannel* channel); 219 void OnReadyToSend(TransportChannel* channel);
216 void OnReceivingState(TransportChannel* channel); 220 void OnReceivingState(TransportChannel* channel);
(...skipping 20 matching lines...) Expand all
237 rtc::SSLProtocolVersion ssl_max_version_; 241 rtc::SSLProtocolVersion ssl_max_version_;
238 rtc::Buffer remote_fingerprint_value_; 242 rtc::Buffer remote_fingerprint_value_;
239 std::string remote_fingerprint_algorithm_; 243 std::string remote_fingerprint_algorithm_;
240 244
241 DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); 245 DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper);
242 }; 246 };
243 247
244 } // namespace cricket 248 } // namespace cricket
245 249
246 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ 250 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/peerconnectionproxy.h ('k') | webrtc/p2p/base/fakesession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698