Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(752)

Side by Side Diff: net/quic/core/quic_sent_entropy_manager.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_sent_entropy_manager.h ('k') | net/quic/core/quic_sent_entropy_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698