OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "net/quic/quic_sent_entropy_manager.h" | 5 #include "net/quic/core/quic_sent_entropy_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "net/base/linked_hash_map.h" | 8 #include "net/base/linked_hash_map.h" |
9 #include "net/quic/quic_flags.h" | 9 #include "net/quic/core/quic_flags.h" |
10 | 10 |
11 using std::make_pair; | 11 using std::make_pair; |
12 using std::max; | 12 using std::max; |
13 using std::min; | 13 using std::min; |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 QuicSentEntropyManager::QuicSentEntropyManager() : map_offset_(1) {} | 17 QuicSentEntropyManager::QuicSentEntropyManager() : map_offset_(1) {} |
18 | 18 |
19 QuicSentEntropyManager::~QuicSentEntropyManager() {} | 19 QuicSentEntropyManager::~QuicSentEntropyManager() {} |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 UpdateCumulativeEntropy(packet_number, &last_valid_entropy_); | 112 UpdateCumulativeEntropy(packet_number, &last_valid_entropy_); |
113 } | 113 } |
114 while (map_offset_ < packet_number) { | 114 while (map_offset_ < packet_number) { |
115 packets_entropy_.pop_front(); | 115 packets_entropy_.pop_front(); |
116 ++map_offset_; | 116 ++map_offset_; |
117 } | 117 } |
118 DVLOG(2) << "Cleared entropy before: " << packet_number; | 118 DVLOG(2) << "Cleared entropy before: " << packet_number; |
119 } | 119 } |
120 | 120 |
121 } // namespace net | 121 } // namespace net |
OLD | NEW |