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

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

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 // Manages the packet entropy calculation for both sent and received packets 5 // Manages the packet entropy calculation for both sent and received packets
6 // for a connection. 6 // for a connection.
7 7
8 #ifndef NET_QUIC_QUIC_SENT_ENTROPY_MANAGER_H_ 8 #ifndef NET_QUIC_QUIC_SENT_ENTROPY_MANAGER_H_
9 #define NET_QUIC_QUIC_SENT_ENTROPY_MANAGER_H_ 9 #define NET_QUIC_QUIC_SENT_ENTROPY_MANAGER_H_
10 10
11 #include <deque> 11 #include <deque>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "net/base/linked_hash_map.h" 14 #include "net/base/linked_hash_map.h"
15 #include "net/quic/quic_framer.h" 15 #include "net/quic/core/quic_framer.h"
16 #include "net/quic/quic_protocol.h" 16 #include "net/quic/core/quic_protocol.h"
17 17
18 namespace net { 18 namespace net {
19 19
20 namespace test { 20 namespace test {
21 class QuicConnectionPeer; 21 class QuicConnectionPeer;
22 } // namespace test 22 } // namespace test
23 23
24 // Records all sent packets by a connection to track the cumulative entropy of 24 // Records all sent packets by a connection to track the cumulative entropy of
25 // sent packets. It is used by the connection to validate an ack 25 // sent packets. It is used by the connection to validate an ack
26 // frame sent by the peer as a preventive measure against the optimistic ack 26 // frame sent by the peer as a preventive measure against the optimistic ack
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Cache the cumulative entropy for the packet number used by EntropyHash. 80 // Cache the cumulative entropy for the packet number used by EntropyHash.
81 CumulativeEntropy last_cumulative_entropy_; 81 CumulativeEntropy last_cumulative_entropy_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(QuicSentEntropyManager); 83 DISALLOW_COPY_AND_ASSIGN(QuicSentEntropyManager);
84 }; 84 };
85 85
86 } // namespace net 86 } // namespace net
87 87
88 #endif // NET_QUIC_QUIC_SENT_ENTROPY_MANAGER_H_ 88 #endif // NET_QUIC_QUIC_SENT_ENTROPY_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_received_packet_manager_test.cc ('k') | net/quic/core/quic_sent_entropy_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698