Chromium Code Reviews

Side by Side Diff: webrtc/p2p/base/session.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 more comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « webrtc/p2p/base/port.cc ('k') | webrtc/p2p/base/session.cc » ('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 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 350 matching lines...)
361 } 361 }
362 362
363 // Called when a transport changes its writable state. We track this to make 363 // Called when a transport changes its writable state. We track this to make
364 // sure that the transport becomes writable within a reasonable amount of 364 // sure that the transport becomes writable within a reasonable amount of
365 // time. If this does not occur, we signal an error. 365 // time. If this does not occur, we signal an error.
366 virtual void OnTransportWritable(Transport* transport) { 366 virtual void OnTransportWritable(Transport* transport) {
367 } 367 }
368 virtual void OnTransportReadable(Transport* transport) { 368 virtual void OnTransportReadable(Transport* transport) {
369 } 369 }
370 370
371 virtual void OnTransportReceiving(Transport* transport) {
372 }
373
371 // Called when a transport has found its steady-state connections. 374 // Called when a transport has found its steady-state connections.
372 virtual void OnTransportCompleted(Transport* transport) { 375 virtual void OnTransportCompleted(Transport* transport) {
373 } 376 }
374 377
375 // Called when a transport has failed permanently. 378 // Called when a transport has failed permanently.
376 virtual void OnTransportFailed(Transport* transport) { 379 virtual void OnTransportFailed(Transport* transport) {
377 } 380 }
378 381
379 // Called when a transport signals that it has new candidates. 382 // Called when a transport signals that it has new candidates.
380 virtual void OnTransportProxyCandidatesReady(TransportProxy* proxy, 383 virtual void OnTransportProxyCandidatesReady(TransportProxy* proxy,
(...skipping 72 matching lines...)
453 uint64 ice_tiebreaker_; 456 uint64 ice_tiebreaker_;
454 // This flag will be set to true after the first role switch. This flag 457 // This flag will be set to true after the first role switch. This flag
455 // will enable us to stop any role switch during the call. 458 // will enable us to stop any role switch during the call.
456 bool role_switch_; 459 bool role_switch_;
457 TransportMap transports_; 460 TransportMap transports_;
458 }; 461 };
459 462
460 } // namespace cricket 463 } // namespace cricket
461 464
462 #endif // WEBRTC_P2P_BASE_SESSION_H_ 465 #endif // WEBRTC_P2P_BASE_SESSION_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/port.cc ('k') | webrtc/p2p/base/session.cc » ('j') | no next file with comments »

Powered by Google App Engine