Index: net/quic/quic_framer.h |
diff --git a/net/quic/quic_framer.h b/net/quic/quic_framer.h |
index 26e6995950544954a8c1212bcbed31d01649ce2a..0bc3299295e244cad409e33d227094ca961207e4 100644 |
--- a/net/quic/quic_framer.h |
+++ b/net/quic/quic_framer.h |
@@ -332,14 +332,13 @@ class NET_EXPORT_PRIVATE QuicFramer { |
// takes ownership of |encrypter|. |
void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); |
- // Returns a new encrypted packet, owned by the caller. |
- // Encrypts into |buffer| if |buffer_len| is long enough, and otherwise |
- // constructs a new buffer owned by the EncryptedPacket. |
- QuicEncryptedPacket* EncryptPayload(EncryptionLevel level, |
- QuicPacketNumber packet_number, |
- const QuicPacket& packet, |
- char* buffer, |
- size_t buffer_len); |
+ // Returns the length of the data encrypted into |buffer| if |buffer_len| is |
+ // long enough, and otherwise 0. |
+ size_t EncryptPayload(EncryptionLevel level, |
+ QuicPacketNumber packet_number, |
+ const QuicPacket& packet, |
+ char* buffer, |
+ size_t buffer_len); |
// Returns the maximum length of plaintext that can be encrypted |
// to ciphertext no larger than |ciphertext_size|. |