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

Side by Side Diff: net/quic/test_tools/delayed_verify_strike_register_client.h

Issue 126513003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_stream_sequencer.h ('k') | net/quic/test_tools/mock_clock.h » ('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 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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_stream_sequencer.h ('k') | net/quic/test_tools/mock_clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698