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

Unified Diff: net/quic/quic_utils.h

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/quic/quic_unacked_packet_map_test.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_utils.h
diff --git a/net/quic/quic_utils.h b/net/quic/quic_utils.h
index 2c34ec4245b0c085c6ad760415dc6002f3611282..5e76a0da43682b294c4fd1c459bd123e37619975 100644
--- a/net/quic/quic_utils.h
+++ b/net/quic/quic_utils.h
@@ -28,7 +28,18 @@ class NET_EXPORT_PRIVATE QuicUtils {
// returns the 128 bit FNV1a hash of the data. See
// http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-param
- static uint128 FNV1a_128_Hash(const char* data, int len);
+ static uint128 FNV1a_128_Hash(const char* data1, int len1);
+
+ // returns the 128 bit FNV1a hash of the two sequences of data. See
+ // http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-param
+ static uint128 FNV1a_128_Hash_Two(const char* data1,
+ int len1,
+ const char* data2,
+ int len2);
+
+ // returns the 128 bit FNV1a hash of the |data|, starting with the
+ // previous hash.
+ static uint128 IncrementalHash(uint128 hash, const char* data, size_t len);
// FindMutualTag sets |out_result| to the first tag in the priority list that
// is also in the other list and returns true. If there is no intersection it
« no previous file with comments | « net/quic/quic_unacked_packet_map_test.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698