| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_SPDY_HPACK_STRING_UTIL_H_ | 5 #ifndef NET_SPDY_HPACK_STRING_UTIL_H_ |
| 6 #define NET_SPDY_HPACK_STRING_UTIL_H_ | 6 #define NET_SPDY_HPACK_STRING_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 // All section references below are to | 13 // All section references below are to |
| 14 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-04 | 14 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-05 |
| 15 // . | 15 // . |
| 16 | 16 |
| 17 // A constant-time StringPiece comparison function, as suggested | 17 // A constant-time StringPiece comparison function, as suggested |
| 18 // by section 6. | 18 // by section 6. |
| 19 bool NET_EXPORT_PRIVATE StringPiecesEqualConstantTime( | 19 bool NET_EXPORT_PRIVATE StringPiecesEqualConstantTime( |
| 20 base::StringPiece str1, | 20 base::StringPiece str1, |
| 21 base::StringPiece str2); | 21 base::StringPiece str2); |
| 22 | 22 |
| 23 } // namespace net | 23 } // namespace net |
| 24 | 24 |
| 25 #endif // NET_SPDY_HPACK_STRING_UTIL_H_ | 25 #endif // NET_SPDY_HPACK_STRING_UTIL_H_ |
| OLD | NEW |