| 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 // 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/base/net_export.h" |
| 15 #include "net/quic/core/quic_framer.h" | 16 #include "net/quic/core/quic_framer.h" |
| 16 #include "net/quic/core/quic_protocol.h" | 17 #include "net/quic/core/quic_protocol.h" |
| 17 | 18 |
| 18 namespace net { | 19 namespace net { |
| 19 | 20 |
| 20 namespace test { | 21 namespace test { |
| 21 class QuicConnectionPeer; | 22 class QuicConnectionPeer; |
| 22 } // namespace test | 23 } // namespace test |
| 23 | 24 |
| 24 // Records all sent packets by a connection to track the cumulative entropy of | 25 // Records all sent packets by a connection to track the cumulative entropy of |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 80 |
| 80 // Cache the cumulative entropy for the packet number used by EntropyHash. | 81 // Cache the cumulative entropy for the packet number used by EntropyHash. |
| 81 CumulativeEntropy last_cumulative_entropy_; | 82 CumulativeEntropy last_cumulative_entropy_; |
| 82 | 83 |
| 83 DISALLOW_COPY_AND_ASSIGN(QuicSentEntropyManager); | 84 DISALLOW_COPY_AND_ASSIGN(QuicSentEntropyManager); |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 } // namespace net | 87 } // namespace net |
| 87 | 88 |
| 88 #endif // NET_QUIC_QUIC_SENT_ENTROPY_MANAGER_H_ | 89 #endif // NET_QUIC_QUIC_SENT_ENTROPY_MANAGER_H_ |
| OLD | NEW |