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

Side by Side Diff: net/quic/core/crypto/strike_register.cc

Issue 2631613002: Revert of Add quic_logging (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « net/quic/core/crypto/quic_random.cc ('k') | net/quic/core/frames/quic_frame.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/crypto/quic_random.cc ('k') | net/quic/core/frames/quic_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698