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

Unified Diff: net/tools/quic/stateless_rejector.h

Issue 2397513002: Conversion of a QUIC method to an async signature and resulting fallout. No functional change inten… (Closed)
Patch Set: Add NET_EXPORT_PRIVATE Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/quic_crypto_server_config_peer.cc ('k') | net/tools/quic/stateless_rejector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/stateless_rejector.h
diff --git a/net/tools/quic/stateless_rejector.h b/net/tools/quic/stateless_rejector.h
index 195324e5e6760dc15ef1ab738d509cc6522e8eda..c8dcd4b97c8d1a5a26c3ec4ab55e7da09fa19978 100644
--- a/net/tools/quic/stateless_rejector.h
+++ b/net/tools/quic/stateless_rejector.h
@@ -67,7 +67,7 @@ class StatelessRejector {
QuicConnectionId connection_id() const { return connection_id_; }
// Returns the SREJ message when state() returns REJECTED.
- const CryptoHandshakeMessage& reply() const { return reply_; }
+ const CryptoHandshakeMessage& reply() const { return *reply_; }
private:
// Helper class which is passed in to
@@ -75,11 +75,21 @@ class StatelessRejector {
class ValidateCallback;
friend class ValidateCallback;
+ class ProcessClientHelloCallback;
+ friend class ProcessClientHelloCallback;
+
void ProcessClientHello(
scoped_refptr<ValidateClientHelloResultCallback::Result> result,
std::unique_ptr<StatelessRejector> rejector,
std::unique_ptr<StatelessRejector::ProcessDoneCallback> done_cb);
+ void ProcessClientHelloDone(
+ QuicErrorCode error,
+ const std::string& error_details,
+ std::unique_ptr<CryptoHandshakeMessage> message,
+ std::unique_ptr<StatelessRejector> rejector,
+ std::unique_ptr<StatelessRejector::ProcessDoneCallback> done_cb);
+
State state_;
QuicErrorCode error_;
std::string error_details_;
@@ -95,9 +105,10 @@ class StatelessRejector {
const QuicCryptoServerConfig* crypto_config_;
QuicCompressedCertsCache* compressed_certs_cache_;
CryptoHandshakeMessage chlo_;
- CryptoHandshakeMessage reply_;
+ std::unique_ptr<CryptoHandshakeMessage> reply_;
CryptoFramer crypto_framer_;
QuicCryptoProof proof_;
+ QuicCryptoNegotiatedParameters params_;
DISALLOW_COPY_AND_ASSIGN(StatelessRejector);
};
« no previous file with comments | « net/quic/test_tools/quic_crypto_server_config_peer.cc ('k') | net/tools/quic/stateless_rejector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698