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 #ifndef NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ |
6 #define NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ | 6 #define NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 // Number of verifications that are queued. | 36 // Number of verifications that are queued. |
37 int PendingVerifications() const; | 37 int PendingVerifications() const; |
38 // Run all pending verifications. | 38 // Run all pending verifications. |
39 void RunPendingVerifications(); | 39 void RunPendingVerifications(); |
40 | 40 |
41 private: | 41 private: |
42 struct VerifyArgs { | 42 struct VerifyArgs { |
43 VerifyArgs(base::StringPiece in_nonce, | 43 VerifyArgs(base::StringPiece in_nonce, |
44 QuicWallTime in_now, | 44 QuicWallTime in_now, |
45 ResultCallback* in_cb) | 45 ResultCallback* in_cb) |
46 : nonce(in_nonce.as_string()), now(in_now), cb(in_cb) { | 46 : nonce(in_nonce.as_string()), |
| 47 now(in_now), |
| 48 cb(in_cb) { |
47 } | 49 } |
48 | 50 |
49 std::string nonce; | 51 std::string nonce; |
50 QuicWallTime now; | 52 QuicWallTime now; |
51 ResultCallback* cb; | 53 ResultCallback* cb; |
52 }; | 54 }; |
53 | 55 |
54 bool delay_verifications_; | 56 bool delay_verifications_; |
55 std::vector<VerifyArgs> pending_verifications_; | 57 std::vector<VerifyArgs> pending_verifications_; |
56 | 58 |
57 DISALLOW_COPY_AND_ASSIGN(DelayedVerifyStrikeRegisterClient); | 59 DISALLOW_COPY_AND_ASSIGN(DelayedVerifyStrikeRegisterClient); |
58 }; | 60 }; |
59 | 61 |
60 } // namespace test | 62 } // namespace test |
61 } // namespace net | 63 } // namespace net |
62 | 64 |
63 #endif // NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ | 65 #endif // NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_ |
OLD | NEW |