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

Unified Diff: net/spdy/hpack_string_util.h

Issue 138243003: Implement basic classes for HPACK (HTTP/2 compression) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding license to new HPACK sources. Created 6 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/spdy/hpack_header_table_test.cc ('k') | net/spdy/hpack_string_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..08582cc9210835b303422c48dee3d69fbe980177
--- /dev/null
+++ b/net/spdy/hpack_string_util.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SPDY_HPACK_STRING_UTIL_H_
+#define NET_SPDY_HPACK_STRING_UTIL_H_
+
+#include "base/strings/string_piece.h"
+#include "net/base/net_export.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 NET_EXPORT_PRIVATE StringPiecesEqualConstantTime(
+ base::StringPiece str1,
+ base::StringPiece str2);
+
+} // namespace net
+
+#endif // NET_SPDY_HPACK_STRING_UTIL_H_
« no previous file with comments | « net/spdy/hpack_header_table_test.cc ('k') | net/spdy/hpack_string_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698