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

Unified Diff: net/quic/core/quic_protocol.h

Issue 2340583002: Make DiversificationNonce a std::array (Closed)
Patch Set: Created 4 years, 3 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/core/quic_packet_generator.cc ('k') | net/quic/core/quic_protocol.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_protocol.h
diff --git a/net/quic/core/quic_protocol.h b/net/quic/core/quic_protocol.h
index 040e53029a32a635eb5f12008c2ffc690a715388..72a5b69cf15006f7a9ee6757ba3e616e911234c7 100644
--- a/net/quic/core/quic_protocol.h
+++ b/net/quic/core/quic_protocol.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <array>
#include <limits>
#include <list>
#include <map>
@@ -727,7 +728,7 @@ enum QuicErrorCode {
QUIC_LAST_ERROR = 95,
};
-typedef char DiversificationNonce[32];
+typedef std::array<char, 32> DiversificationNonce;
struct NET_EXPORT_PRIVATE QuicPacketPublicHeader {
QuicPacketPublicHeader();
« no previous file with comments | « net/quic/core/quic_packet_generator.cc ('k') | net/quic/core/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698