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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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
« no previous file with comments | « net/base/file_stream_unittest.cc ('k') | net/base/host_mapping_rules.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h>
9 #include <stdint.h>
8 #include <string.h> 10 #include <string.h>
9 11
10 #include <string> 12 #include <string>
11 #include <vector> 13 #include <vector>
12 14
13 #include "base/basictypes.h"
14 #include "base/strings/string_piece.h" 15 #include "base/strings/string_piece.h"
15 #include "build/build_config.h" 16 #include "build/build_config.h"
16 #include "net/base/net_export.h" 17 #include "net/base/net_export.h"
17 18
18 namespace net { 19 namespace net {
19 20
20 struct NET_EXPORT SHA1HashValue { 21 struct NET_EXPORT SHA1HashValue {
21 bool Equals(const SHA1HashValue& other) const; 22 bool Equals(const SHA1HashValue& other) const;
22 23
23 unsigned char data[20]; 24 unsigned char data[20];
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 116
116 // IsSHA1HashInSortedArray returns true iff |hash| is in |array|, a sorted 117 // IsSHA1HashInSortedArray returns true iff |hash| is in |array|, a sorted
117 // array of SHA1 hashes. 118 // array of SHA1 hashes.
118 bool IsSHA1HashInSortedArray(const SHA1HashValue& hash, 119 bool IsSHA1HashInSortedArray(const SHA1HashValue& hash,
119 const uint8_t* array, 120 const uint8_t* array,
120 size_t array_byte_len); 121 size_t array_byte_len);
121 122
122 } // namespace net 123 } // namespace net
123 124
124 #endif // NET_BASE_HASH_VALUE_H_ 125 #endif // NET_BASE_HASH_VALUE_H_
OLDNEW
« no previous file with comments | « net/base/file_stream_unittest.cc ('k') | net/base/host_mapping_rules.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698