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

Unified Diff: net/quic/quic_utils.h

Issue 1667003002: Replace QuicEncryptedPacket's fields with equivalents in SerializedPacket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@113395732
Patch Set: Created 4 years, 10 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/quic_unacked_packet_map_test.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_utils.h
diff --git a/net/quic/quic_utils.h b/net/quic/quic_utils.h
index 3965c6580540dc7ac99d2413a995f1f12693ab29..b73603cd38cb22544b5d7e22e8161c9b2ed4a86a 100644
--- a/net/quic/quic_utils.h
+++ b/net/quic/quic_utils.h
@@ -120,6 +120,10 @@ class NET_EXPORT_PRIVATE QuicUtils {
static uint64_t PackPathIdAndPacketNumber(QuicPathId path_id,
QuicPacketNumber packet_number);
+ // Allocates a new char[] of size |packet.encrypted_length| and copies in
+ // |packet.encrypted_buffer|.
+ static char* CopyBuffer(const SerializedPacket& packet);
+
private:
DISALLOW_COPY_AND_ASSIGN(QuicUtils);
};
« no previous file with comments | « net/quic/quic_unacked_packet_map_test.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698