Index: net/spdy/hpack_string_util.h |
diff --git a/net/spdy/hpack_string_util.h b/net/spdy/hpack_string_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..405c0298877d011766c6f4bf2fccd93d81312c6a |
--- /dev/null |
+++ b/net/spdy/hpack_string_util.h |
@@ -0,0 +1,19 @@ |
+#ifndef NET_SPDY_HPACK_STRING_UTIL_H_ |
+#define NET_SPDY_HPACK_STRING_UTIL_H_ |
+ |
+#include "base/strings/string_piece.h" |
+ |
+namespace net { |
+ |
+// All section references below are to |
+// http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-04 |
+// . |
+ |
+// A constant-time StringPiece comparison function, as suggested |
+// by section 6. |
+bool StringPiecesEqualConstantTime(base::StringPiece str1, |
+ base::StringPiece str2); |
+ |
+} // namespace net |
+ |
+#endif // NET_SPDY_HPACK_STRING_UTIL_H_ |