| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Based on the inter arrival time of the received packets relative to the time | 5 // Based on the inter arrival time of the received packets relative to the time |
| 6 // those packets where sent we can estimate the available capacity of the | 6 // those packets where sent we can estimate the available capacity of the |
| 7 // channel. | 7 // channel. |
| 8 // We can only use packet trains that are sent out faster than the acctual | 8 // We can only use packet trains that are sent out faster than the acctual |
| 9 // available channel capacity. | 9 // available channel capacity. |
| 10 // Note 1: this is intended to be a temporary class created when you send out a | 10 // Note 1: this is intended to be a temporary class created when you send out a |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 const QuicPacketSequenceNumber first_sequence_number_; | 53 const QuicPacketSequenceNumber first_sequence_number_; |
| 54 const QuicTime first_send_time_; | 54 const QuicTime first_send_time_; |
| 55 const QuicTime first_receive_time_; | 55 const QuicTime first_receive_time_; |
| 56 QuicPacketSequenceNumber last_incorporated_sequence_number_; | 56 QuicPacketSequenceNumber last_incorporated_sequence_number_; |
| 57 QuicTime last_time_sent_; | 57 QuicTime last_time_sent_; |
| 58 QuicTime last_receive_time_; | 58 QuicTime last_receive_time_; |
| 59 int number_of_sequence_numbers_; | 59 int number_of_sequence_numbers_; |
| 60 QuicByteCount received_bytes_; | 60 QuicByteCount received_bytes_; |
| 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(AvailableChannelEstimator); |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 } // namespace net | 65 } // namespace net |
| 64 #endif // NET_QUIC_CONGESTION_CONTROL_AVAILABLE_CHANNEL_ESTIMATOR_H_ | 66 #endif // NET_QUIC_CONGESTION_CONTROL_AVAILABLE_CHANNEL_ESTIMATOR_H_ |
| OLD | NEW |