| Index: net/quic/quic_sent_entropy_manager.cc
|
| diff --git a/net/quic/quic_sent_entropy_manager.cc b/net/quic/quic_sent_entropy_manager.cc
|
| index 0f33e2d56e9b26c43a3339e3ee5759d998a53a32..898258d5af891b01a813c59fbf3630f56bcbe380 100644
|
| --- a/net/quic/quic_sent_entropy_manager.cc
|
| +++ b/net/quic/quic_sent_entropy_manager.cc
|
| @@ -13,10 +13,11 @@ using std::min;
|
|
|
| namespace net {
|
|
|
| -QuicSentEntropyManager::QuicSentEntropyManager()
|
| - : packets_entropy_hash_(0) {}
|
| +QuicSentEntropyManager::QuicSentEntropyManager() : packets_entropy_hash_(0) {
|
| +}
|
|
|
| -QuicSentEntropyManager::~QuicSentEntropyManager() {}
|
| +QuicSentEntropyManager::~QuicSentEntropyManager() {
|
| +}
|
|
|
| void QuicSentEntropyManager::RecordPacketEntropyHash(
|
| QuicPacketSequenceNumber sequence_number,
|
| @@ -24,9 +25,8 @@ void QuicSentEntropyManager::RecordPacketEntropyHash(
|
| // TODO(satyamshekhar): Check this logic again when/if we enable packet
|
| // reordering.
|
| packets_entropy_hash_ ^= entropy_hash;
|
| - packets_entropy_.insert(
|
| - make_pair(sequence_number,
|
| - make_pair(entropy_hash, packets_entropy_hash_)));
|
| + packets_entropy_.insert(make_pair(
|
| + sequence_number, make_pair(entropy_hash, packets_entropy_hash_)));
|
| DVLOG(2) << "setting cumulative sent entropy hash to: "
|
| << static_cast<int>(packets_entropy_hash_)
|
| << " updated with sequence number " << sequence_number
|
| @@ -35,8 +35,7 @@ void QuicSentEntropyManager::RecordPacketEntropyHash(
|
|
|
| QuicPacketEntropyHash QuicSentEntropyManager::EntropyHash(
|
| QuicPacketSequenceNumber sequence_number) const {
|
| - SentEntropyMap::const_iterator it =
|
| - packets_entropy_.find(sequence_number);
|
| + SentEntropyMap::const_iterator it = packets_entropy_.find(sequence_number);
|
| if (it == packets_entropy_.end()) {
|
| // Should only happen when we have not received ack for any packet.
|
| DCHECK_EQ(0u, sequence_number);
|
| @@ -58,7 +57,8 @@ bool QuicSentEntropyManager::IsValidEntropy(
|
| }
|
| QuicPacketEntropyHash expected_entropy_hash = entropy_it->second.second;
|
| for (SequenceNumberSet::const_iterator it = missing_packets.begin();
|
| - it != missing_packets.end(); ++it) {
|
| + it != missing_packets.end();
|
| + ++it) {
|
| entropy_it = packets_entropy_.find(*it);
|
| DCHECK(entropy_it != packets_entropy_.end());
|
| expected_entropy_hash ^= entropy_it->second.first;
|
| @@ -80,8 +80,7 @@ void QuicSentEntropyManager::ClearEntropyBefore(
|
| it = packets_entropy_.begin();
|
| DCHECK(it != packets_entropy_.end());
|
| }
|
| - DVLOG(2) << "Cleared entropy before: "
|
| - << packets_entropy_.begin()->first;
|
| + DVLOG(2) << "Cleared entropy before: " << packets_entropy_.begin()->first;
|
| }
|
|
|
| } // namespace net
|
|
|