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

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

Issue 1207563002: Add flakiness check if there is no received packets in a certain period. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address comments except for naming. Created 5 years, 6 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
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 // Needed by DtlsTransport. 207 // Needed by DtlsTransport.
208 TransportChannelImpl* channel() { return channel_; } 208 TransportChannelImpl* channel() { return channel_; }
209 209
210 private: 210 private:
211 void OnReadableState(TransportChannel* channel); 211 void OnReadableState(TransportChannel* channel);
212 void OnWritableState(TransportChannel* channel); 212 void OnWritableState(TransportChannel* channel);
213 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, 213 void OnReadPacket(TransportChannel* channel, const char* data, size_t size,
214 const rtc::PacketTime& packet_time, int flags); 214 const rtc::PacketTime& packet_time, int flags);
215 void OnReadyToSend(TransportChannel* channel); 215 void OnReadyToSend(TransportChannel* channel);
216 void OnFlakyState(TransportChannel* channel);
pthatcher1 2015/06/26 19:24:02 How about OnRecevingState?
honghaiz3 2015/08/05 23:56:56 Done.
216 void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err); 217 void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err);
217 bool SetupDtls(); 218 bool SetupDtls();
218 bool MaybeStartDtls(); 219 bool MaybeStartDtls();
219 bool HandleDtlsPacket(const char* data, size_t size); 220 bool HandleDtlsPacket(const char* data, size_t size);
220 void OnRequestSignaling(TransportChannelImpl* channel); 221 void OnRequestSignaling(TransportChannelImpl* channel);
221 void OnCandidateReady(TransportChannelImpl* channel, const Candidate& c); 222 void OnCandidateReady(TransportChannelImpl* channel, const Candidate& c);
222 void OnCandidatesAllocationDone(TransportChannelImpl* channel); 223 void OnCandidatesAllocationDone(TransportChannelImpl* channel);
223 void OnRoleConflict(TransportChannelImpl* channel); 224 void OnRoleConflict(TransportChannelImpl* channel);
224 void OnRouteChange(TransportChannel* channel, const Candidate& candidate); 225 void OnRouteChange(TransportChannel* channel, const Candidate& candidate);
225 void OnConnectionRemoved(TransportChannelImpl* channel); 226 void OnConnectionRemoved(TransportChannelImpl* channel);
(...skipping 10 matching lines...) Expand all
236 rtc::SSLProtocolVersion ssl_max_version_; 237 rtc::SSLProtocolVersion ssl_max_version_;
237 rtc::Buffer remote_fingerprint_value_; 238 rtc::Buffer remote_fingerprint_value_;
238 std::string remote_fingerprint_algorithm_; 239 std::string remote_fingerprint_algorithm_;
239 240
240 DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); 241 DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper);
241 }; 242 };
242 243
243 } // namespace cricket 244 } // namespace cricket
244 245
245 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ 246 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698