| Index: net/quic/crypto/crypto_framer.h
|
| ===================================================================
|
| --- net/quic/crypto/crypto_framer.h (revision 184750)
|
| +++ net/quic/crypto/crypto_framer.h (working copy)
|
| @@ -42,6 +42,11 @@
|
|
|
| virtual ~CryptoFramer();
|
|
|
| + // ParseMessage parses exactly one message from the given StringPiece. If
|
| + // there is an error, the message is truncated, or the message has trailing
|
| + // garbage then NULL will be returned.
|
| + static CryptoHandshakeMessage* ParseMessage(base::StringPiece in);
|
| +
|
| // Set callbacks to be called from the framer. A visitor must be set, or
|
| // else the framer will crash. It is acceptable for the visitor to do
|
| // nothing. If this is called multiple times, only the last visitor
|
| @@ -66,7 +71,8 @@
|
|
|
| // Returns a new QuicData owned by the caller that contains a serialized
|
| // |message|, or NULL if there was an error.
|
| - QuicData* ConstructHandshakeMessage(const CryptoHandshakeMessage& message);
|
| + static QuicData* ConstructHandshakeMessage(
|
| + const CryptoHandshakeMessage& message);
|
|
|
| private:
|
| // Clears per-message state. Does not clear the visitor.
|
|
|