Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
|
Alexei Svitkine (slow)
2015/04/16 15:09:43
2015. Fix throughout.
Steven Holte
2015/04/22 19:24:28
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_RAPPOR_SAMPLE_H_ | |
| 6 #define COMPONENTS_RAPPOR_SAMPLE_H_ | |
| 7 | |
| 8 #include <map> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/macros.h" | |
| 12 #include "components/rappor/rappor_parameters.h" | |
| 13 | |
| 14 namespace rappor { | |
| 15 | |
| 16 class RapporReports; | |
| 17 | |
| 18 class Sample { | |
|
Alexei Svitkine (slow)
2015/04/16 15:09:43
Comment.
Steven Holte
2015/04/22 19:24:28
Done.
| |
| 19 public: | |
| 20 Sample(int32_t cohort_seed, const RapporParameters& parameters); | |
| 21 ~Sample(); | |
| 22 | |
| 23 void SetStringField(const std::string& fieldName, const std::string& value); | |
|
Alexei Svitkine (slow)
2015/04/16 15:09:43
Nit: field_name
Steven Holte
2015/04/22 19:24:28
Done.
| |
| 24 void SetFlagsField(const std::string& fieldName, uint64_t flags); | |
| 25 | |
| 26 void ExportMetrics(const std::string& secret, | |
| 27 const std::string& metricName, | |
|
Alexei Svitkine (slow)
2015/04/16 15:09:43
metric_name
Steven Holte
2015/04/22 19:24:28
Done.
| |
| 28 RapporReports* reports) const; | |
| 29 | |
| 30 const RapporParameters& parameters() { return parameters_; } | |
| 31 | |
| 32 private: | |
| 33 const RapporParameters parameters_; | |
| 34 uint32_t bloom_offset_; | |
| 35 std::map<std::string, size_t> sizes; | |
|
Alexei Svitkine (slow)
2015/04/16 15:09:43
sizes_
Steven Holte
2015/04/22 19:24:28
Done.
| |
| 36 std::map<std::string, uint64_t> fields; | |
|
Alexei Svitkine (slow)
2015/04/16 15:09:43
fields_
Steven Holte
2015/04/22 19:24:28
Done.
| |
| 37 DISALLOW_COPY_AND_ASSIGN(Sample); | |
|
Alexei Svitkine (slow)
2015/04/16 15:09:43
Empty line before.
Steven Holte
2015/04/22 19:24:28
Done.
| |
| 38 }; | |
| 39 | |
| 40 } // namespace rappor | |
| 41 | |
| 42 #endif // COMPONENTS_RAPPOR_SAMPLE_H_ | |
| OLD | NEW |