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

Unified Diff: net/quic/spdy_utils.h

Issue 1561383002: relnote: add new unused functions for client side of QUIC server push. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@21_CL_111427940
Patch Set: port spdy_utils_test.cc Created 4 years, 11 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/net.gypi ('k') | net/quic/spdy_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/spdy_utils.h
diff --git a/net/quic/spdy_utils.h b/net/quic/spdy_utils.h
index b0d8a597d7661cdfa73862005e9ea349d86c97f5..2351e57506f2a690d0581ab19dbb4f05283c62b6 100644
--- a/net/quic/spdy_utils.h
+++ b/net/quic/spdy_utils.h
@@ -43,6 +43,14 @@ class NET_EXPORT_PRIVATE SpdyUtils {
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);
+
+ // Returns true if result of |GetUrlFromHeaderBlock()| is non-empty
+ // and is a well-formed URL.
+ static bool UrlIsValid(const net::SpdyHeaderBlock& headers);
+
private:
DISALLOW_COPY_AND_ASSIGN(SpdyUtils);
};
« no previous file with comments | « net/net.gypi ('k') | net/quic/spdy_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698