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

Side by Side Diff: net/quic/crypto/local_strike_register_client.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 #ifndef NET_QUIC_CRYPTO_LOCAL_STRIKE_REGISTER_CLIENT_H_ 5 #ifndef NET_QUIC_CRYPTO_LOCAL_STRIKE_REGISTER_CLIENT_H_
6 #define NET_QUIC_CRYPTO_LOCAL_STRIKE_REGISTER_CLIENT_H_ 6 #define NET_QUIC_CRYPTO_LOCAL_STRIKE_REGISTER_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include <stdint.h>
9
10 #include "base/macros.h"
9 #include "base/strings/string_piece.h" 11 #include "base/strings/string_piece.h"
10 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
11 #include "net/base/net_export.h" 13 #include "net/base/net_export.h"
12 #include "net/quic/crypto/strike_register.h" 14 #include "net/quic/crypto/strike_register.h"
13 #include "net/quic/crypto/strike_register_client.h" 15 #include "net/quic/crypto/strike_register_client.h"
14 #include "net/quic/quic_time.h" 16 #include "net/quic/quic_time.h"
15 17
16 namespace net { 18 namespace net {
17 19
18 // StrikeRegisterClient implementation that wraps a local in-memory 20 // StrikeRegisterClient implementation that wraps a local in-memory
19 // strike register. 21 // strike register.
20 class NET_EXPORT_PRIVATE LocalStrikeRegisterClient 22 class NET_EXPORT_PRIVATE LocalStrikeRegisterClient
21 : public StrikeRegisterClient { 23 : public StrikeRegisterClient {
22 public: 24 public:
23 LocalStrikeRegisterClient(unsigned max_entries, 25 LocalStrikeRegisterClient(unsigned max_entries,
24 uint32 current_time_external, 26 uint32_t current_time_external,
25 uint32 window_secs, 27 uint32_t window_secs,
26 const uint8 orbit[8], 28 const uint8_t orbit[8],
27 StrikeRegister::StartupType startup); 29 StrikeRegister::StartupType startup);
28 30
29 bool IsKnownOrbit(base::StringPiece orbit) const override; 31 bool IsKnownOrbit(base::StringPiece orbit) const override;
30 void VerifyNonceIsValidAndUnique(base::StringPiece nonce, 32 void VerifyNonceIsValidAndUnique(base::StringPiece nonce,
31 QuicWallTime now, 33 QuicWallTime now,
32 ResultCallback* cb) override; 34 ResultCallback* cb) override;
33 35
34 private: 36 private:
35 mutable base::Lock m_; 37 mutable base::Lock m_;
36 StrikeRegister strike_register_; 38 StrikeRegister strike_register_;
37 39
38 DISALLOW_COPY_AND_ASSIGN(LocalStrikeRegisterClient); 40 DISALLOW_COPY_AND_ASSIGN(LocalStrikeRegisterClient);
39 }; 41 };
40 42
41 } // namespace net 43 } // namespace net
42 44
43 #endif // NET_QUIC_CRYPTO_LOCAL_STRIKE_REGISTER_CLIENT_H_ 45 #endif // NET_QUIC_CRYPTO_LOCAL_STRIKE_REGISTER_CLIENT_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/curve25519_key_exchange.cc ('k') | net/quic/crypto/local_strike_register_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698