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

Side by Side Diff: net/quic/core/crypto/local_strike_register_client.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/crypto/local_strike_register_client.h" 5 #include "net/quic/core/crypto/local_strike_register_client.h"
6 6
7 #include "net/quic/crypto/crypto_protocol.h" 7 #include "net/quic/core/crypto/crypto_protocol.h"
8 8
9 using base::StringPiece; 9 using base::StringPiece;
10 using std::string; 10 using std::string;
11 11
12 namespace net { 12 namespace net {
13 13
14 LocalStrikeRegisterClient::LocalStrikeRegisterClient( 14 LocalStrikeRegisterClient::LocalStrikeRegisterClient(
15 unsigned max_entries, 15 unsigned max_entries,
16 uint32_t current_time_external, 16 uint32_t current_time_external,
17 uint32_t window_secs, 17 uint32_t window_secs,
(...skipping 25 matching lines...) Expand all
43 nonce_error = 43 nonce_error =
44 strike_register_.Insert(reinterpret_cast<const uint8_t*>(nonce.data()), 44 strike_register_.Insert(reinterpret_cast<const uint8_t*>(nonce.data()),
45 static_cast<uint32_t>(now.ToUNIXSeconds())); 45 static_cast<uint32_t>(now.ToUNIXSeconds()));
46 } 46 }
47 47
48 // m_ must not be held when the ResultCallback runs. 48 // m_ must not be held when the ResultCallback runs.
49 cb->Run((nonce_error == NONCE_OK), nonce_error); 49 cb->Run((nonce_error == NONCE_OK), nonce_error);
50 } 50 }
51 51
52 } // namespace net 52 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/local_strike_register_client.h ('k') | net/quic/core/crypto/local_strike_register_client_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698