OLD | NEW |
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_RAPPOR_METRIC_H_ | 5 #ifndef COMPONENTS_RAPPOR_RAPPOR_METRIC_H_ |
6 #define COMPONENTS_RAPPOR_RAPPOR_METRIC_H_ | 6 #define COMPONENTS_RAPPOR_RAPPOR_METRIC_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/basictypes.h" | |
11 #include "base/macros.h" | 12 #include "base/macros.h" |
12 #include "components/rappor/bloom_filter.h" | 13 #include "components/rappor/bloom_filter.h" |
13 #include "components/rappor/byte_vector_utils.h" | 14 #include "components/rappor/byte_vector_utils.h" |
14 #include "components/rappor/rappor_parameters.h" | 15 #include "components/rappor/rappor_parameters.h" |
15 | 16 |
16 namespace rappor { | 17 namespace rappor { |
17 | 18 |
18 // A RapporMetric is an object that collects string samples into a Bloom filter, | 19 // A RapporMetric is an object that collects string samples into a Bloom filter, |
19 // and generates randomized reports about the collected data. | 20 // and generates randomized reports about the collected data. |
20 // | 21 // |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const RapporParameters parameters_; | 59 const RapporParameters parameters_; |
59 uint32_t sample_count_; | 60 uint32_t sample_count_; |
60 BloomFilter bloom_filter_; | 61 BloomFilter bloom_filter_; |
61 | 62 |
62 DISALLOW_COPY_AND_ASSIGN(RapporMetric); | 63 DISALLOW_COPY_AND_ASSIGN(RapporMetric); |
63 }; | 64 }; |
64 | 65 |
65 } // namespace rappor | 66 } // namespace rappor |
66 | 67 |
67 #endif // COMPONENTS_RAPPOR_RAPPOR_METRIC_H_ | 68 #endif // COMPONENTS_RAPPOR_RAPPOR_METRIC_H_ |
OLD | NEW |