| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 // this to start a timer, to make sure that the connection completes in a | 366 // this to start a timer, to make sure that the connection completes in a |
| 367 // reasonable amount of time. | 367 // reasonable amount of time. |
| 368 virtual void OnTransportConnecting(Transport* transport) { | 368 virtual void OnTransportConnecting(Transport* transport) { |
| 369 } | 369 } |
| 370 | 370 |
| 371 // Called when a transport changes its writable state. We track this to make | 371 // Called when a transport changes its writable state. We track this to make |
| 372 // sure that the transport becomes writable within a reasonable amount of | 372 // sure that the transport becomes writable within a reasonable amount of |
| 373 // time. If this does not occur, we signal an error. | 373 // time. If this does not occur, we signal an error. |
| 374 virtual void OnTransportWritable(Transport* transport) { | 374 virtual void OnTransportWritable(Transport* transport) { |
| 375 } | 375 } |
| 376 virtual void OnTransportReadable(Transport* transport) { | |
| 377 } | |
| 378 | 376 |
| 379 virtual void OnTransportReceiving(Transport* transport) { | 377 virtual void OnTransportReceiving(Transport* transport) { |
| 380 } | 378 } |
| 381 | 379 |
| 382 // Called when a transport has found its steady-state connections. | 380 // Called when a transport has found its steady-state connections. |
| 383 virtual void OnTransportCompleted(Transport* transport) { | 381 virtual void OnTransportCompleted(Transport* transport) { |
| 384 } | 382 } |
| 385 | 383 |
| 386 // Called when a transport has failed permanently. | 384 // Called when a transport has failed permanently. |
| 387 virtual void OnTransportFailed(Transport* transport) { | 385 virtual void OnTransportFailed(Transport* transport) { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 TransportMap transports_; | 460 TransportMap transports_; |
| 463 | 461 |
| 464 // Timeout value in milliseconds for which no ICE connection receives | 462 // Timeout value in milliseconds for which no ICE connection receives |
| 465 // any packets. | 463 // any packets. |
| 466 int ice_receiving_timeout_; | 464 int ice_receiving_timeout_; |
| 467 }; | 465 }; |
| 468 | 466 |
| 469 } // namespace cricket | 467 } // namespace cricket |
| 470 | 468 |
| 471 #endif // WEBRTC_P2P_BASE_SESSION_H_ | 469 #endif // WEBRTC_P2P_BASE_SESSION_H_ |
| OLD | NEW |