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

Unified Diff: net/quic/spdy_utils.h

Issue 1870833005: relnote: Implements OnHeaderFrameStart and OnHeaderFrameEnd in QuicHeadersStream. Not used in produ… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@06_CL_119188441
Patch Set: Created 4 years, 8 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
Index: net/quic/spdy_utils.h
diff --git a/net/quic/spdy_utils.h b/net/quic/spdy_utils.h
index ba8fecb9a26140042afd62724ff9be7afc658024..708e0c3f2a9afa569a98b70786b05b17cecaab77 100644
--- a/net/quic/spdy_utils.h
+++ b/net/quic/spdy_utils.h
@@ -13,6 +13,7 @@
#include "base/macros.h"
#include "net/base/net_export.h"
+#include "net/quic/quic_header_list.h"
#include "net/quic/quic_protocol.h"
#include "net/spdy/spdy_framer.h"
@@ -43,6 +44,12 @@ class NET_EXPORT_PRIVATE SpdyUtils {
size_t* final_byte_offset,
SpdyHeaderBlock* trailers);
+ // Copies a list of headers to a SpdyHeaderBlock. Performs similar validation
+ // to SpdyFramer::ParseHeaderBlockInBuffer.
+ static bool CopyAndValidateTrailers(const QuicHeaderList& header_list,
+ size_t* final_byte_offset,
+ SpdyHeaderBlock* trailers);
+
// Returns URL composed from scheme, authority, and path header
// values, or empty string if any of those fields are missing.
static std::string GetUrlFromHeaderBlock(const net::SpdyHeaderBlock& headers);

Powered by Google App Engine
This is Rietveld 408576698