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

Unified Diff: net/quic/quic_utils.h

Issue 11633030: Send the ClientHello handshake message. Fix a bug in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix QuicStreamFactoryTest properly Created 8 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_utils.h
===================================================================
--- net/quic/quic_utils.h (revision 174485)
+++ net/quic/quic_utils.h (working copy)
@@ -17,6 +17,11 @@
namespace net {
+class QuicClientHelloConfig;
+class QuicClock;
+class QuicRandom;
+struct CryptoHandshakeMessage;
+
class NET_EXPORT_PRIVATE QuicUtils {
public:
// The overhead the quic framing will add for a packet with num_frames
@@ -29,6 +34,15 @@
// Returns the name of the quic error code as a char*
static const char* ErrorToString(QuicErrorCode error);
+
+ // Generates the connection nonce.
+ static void GenerateNonce(const QuicClock* clock,
+ QuicRandom* random_generator,
+ std::string* nonce);
+
+ static void FillClientHelloMessage(const QuicClientHelloConfig& config,
Ryan Hamilton 2012/12/22 22:31:32 I think you'll end up wanting the inverse of this
+ const std::string& nonce,
Ryan Hamilton 2012/12/22 22:31:32 nit: add #include <string>
+ CryptoHandshakeMessage* message);
wtc 2012/12/22 04:21:51 Is QuicUtils the right home for these two utility
Ryan Hamilton 2012/12/22 22:31:32 This is fine. I think I'd probably create a Crypt
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698