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

Side by Side Diff: components/rappor/byte_vector_utils.h

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix more compile errors in JNI files Created 4 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
OLDNEW
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 COMPONENTS_RAPPOR_BYTE_VECTOR_UTILS_H_ 5 #ifndef COMPONENTS_RAPPOR_BYTE_VECTOR_UTILS_H_
6 #define COMPONENTS_RAPPOR_BYTE_VECTOR_UTILS_H_ 6 #define COMPONENTS_RAPPOR_BYTE_VECTOR_UTILS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/strings/string_piece.h" 14 #include "base/strings/string_piece.h"
15 #include "components/rappor/rappor_parameters.h" 15 #include "components/rappor/public/rappor_parameters.h"
16 #include "crypto/hmac.h" 16 #include "crypto/hmac.h"
17 17
18 namespace rappor { 18 namespace rappor {
19 19
20 // A vector of 8-bit integers used to store a set of binary bits. 20 // A vector of 8-bit integers used to store a set of binary bits.
21 typedef std::vector<uint8_t> ByteVector; 21 typedef std::vector<uint8_t> ByteVector;
22 22
23 // Converts the lowest |size| bytes of |value| into a ByteVector. 23 // Converts the lowest |size| bytes of |value| into a ByteVector.
24 void Uint64ToByteVector(uint64_t value, size_t size, ByteVector* output); 24 void Uint64ToByteVector(uint64_t value, size_t size, ByteVector* output);
25 25
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Total number of bytes streamed from the HMAC_DRBG Generate Process. 113 // Total number of bytes streamed from the HMAC_DRBG Generate Process.
114 size_t generated_bytes_; 114 size_t generated_bytes_;
115 115
116 DISALLOW_ASSIGN(HmacByteVectorGenerator); 116 DISALLOW_ASSIGN(HmacByteVectorGenerator);
117 }; 117 };
118 118
119 } // namespace rappor 119 } // namespace rappor
120 120
121 #endif // COMPONENTS_RAPPOR_BYTE_VECTOR_UTILS_H_ 121 #endif // COMPONENTS_RAPPOR_BYTE_VECTOR_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698