| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/core/crypto/strike_register.h" | 5 #include "net/quic/core/crypto/strike_register.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "net/quic/platform/api/quic_logging.h" | 10 #include "base/logging.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 uint32_t GetInitialHorizon(uint32_t current_time_internal, | 16 uint32_t GetInitialHorizon(uint32_t current_time_internal, |
| 17 uint32_t window_secs, | 17 uint32_t window_secs, |
| 18 StrikeRegister::StartupType startup) { | 18 StrikeRegister::StartupType startup) { |
| 19 if (startup == StrikeRegister::DENY_REQUESTS_AT_STARTUP) { | 19 if (startup == StrikeRegister::DENY_REQUESTS_AT_STARTUP) { |
| 20 // The horizon is initially set |window_secs| into the future because, if | 20 // The horizon is initially set |window_secs| into the future because, if |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 CHECK_EQ(free_internal_nodes.count(inter), 0u); | 507 CHECK_EQ(free_internal_nodes.count(inter), 0u); |
| 508 CHECK_EQ(used_internal_nodes->count(inter), 0u); | 508 CHECK_EQ(used_internal_nodes->count(inter), 0u); |
| 509 used_internal_nodes->insert(inter); | 509 used_internal_nodes->insert(inter); |
| 510 ValidateTree(inter, bit, bits, free_internal_nodes, free_external_nodes, | 510 ValidateTree(inter, bit, bits, free_internal_nodes, free_external_nodes, |
| 511 used_internal_nodes, used_external_nodes); | 511 used_internal_nodes, used_external_nodes); |
| 512 } | 512 } |
| 513 } | 513 } |
| 514 } | 514 } |
| 515 | 515 |
| 516 } // namespace net | 516 } // namespace net |
| OLD | NEW |