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

Side by Side Diff: net/base/hash_value.h

Issue 1158923005: Use the exact-width integer types defined in <stdint.h> rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comments. Exclude mime_sniffer*. Rebase. Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_HASH_VALUE_H_ 5 #ifndef NET_BASE_HASH_VALUE_H_
6 #define NET_BASE_HASH_VALUE_H_ 6 #define NET_BASE_HASH_VALUE_H_
7 7
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 return fingerprint_.Equals(other); 110 return fingerprint_.Equals(other);
111 } 111 }
112 112
113 const HashValue& fingerprint_; 113 const HashValue& fingerprint_;
114 }; 114 };
115 115
116 116
117 // IsSHA1HashInSortedArray returns true iff |hash| is in |array|, a sorted 117 // IsSHA1HashInSortedArray returns true iff |hash| is in |array|, a sorted
118 // array of SHA1 hashes. 118 // array of SHA1 hashes.
119 bool IsSHA1HashInSortedArray(const SHA1HashValue& hash, 119 bool IsSHA1HashInSortedArray(const SHA1HashValue& hash,
120 const uint8* array, 120 const uint8_t* array,
121 size_t array_byte_len); 121 size_t array_byte_len);
122 122
123 } // namespace net 123 } // namespace net
124 124
125 #endif // NET_BASE_HASH_VALUE_H_ 125 #endif // NET_BASE_HASH_VALUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698