OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_REPORTS_H_ | 5 #ifndef COMPONENTS_RAPPOR_REPORTS_H_ |
6 #define COMPONENTS_RAPPOR_REPORTS_H_ | 6 #define COMPONENTS_RAPPOR_REPORTS_H_ |
7 | 7 |
8 #include "components/rappor/reports.h" | 8 #include "components/rappor/reports.h" |
9 | 9 |
10 #include "components/rappor/byte_vector_utils.h" | 10 #include "components/rappor/byte_vector_utils.h" |
11 | 11 |
12 namespace rappor { | 12 namespace rappor { |
13 | 13 |
14 struct RapporParameters; | |
15 | |
16 namespace internal { | 14 namespace internal { |
17 | 15 |
18 // Generate a randomized report for a single metric/field. | 16 // Generate a randomized report for a single metric/field. |
19 ByteVector GenerateReport(const std::string& secret, | 17 ByteVector GenerateReport(const std::string& secret, |
20 const NoiseParameters& parameters, | 18 const NoiseParameters& parameters, |
21 const ByteVector& value); | 19 const ByteVector& value); |
22 | 20 |
23 } // namespace internal | 21 } // namespace internal |
24 | 22 |
25 } // namespace rappor | 23 } // namespace rappor |
26 | 24 |
27 #endif // COMPONENTS_RAPPOR_REPORTS_H_ | 25 #endif // COMPONENTS_RAPPOR_REPORTS_H_ |
OLD | NEW |