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 #include "components/rappor/sample.h" | 5 #include "components/rappor/public/sample.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/metrics/metrics_hashes.h" | 11 #include "base/metrics/metrics_hashes.h" |
12 #include "components/rappor/bloom_filter.h" | 12 #include "components/rappor/bloom_filter.h" |
13 #include "components/rappor/byte_vector_utils.h" | 13 #include "components/rappor/byte_vector_utils.h" |
14 #include "components/rappor/proto/rappor_metric.pb.h" | 14 #include "components/rappor/proto/rappor_metric.pb.h" |
15 #include "components/rappor/reports.h" | 15 #include "components/rappor/reports.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 RapporReports::Report* report = reports->add_report(); | 105 RapporReports::Report* report = reports->add_report(); |
106 report->set_name_hash(base::HashMetricName( | 106 report->set_name_hash(base::HashMetricName( |
107 metric_name + "." + kv.first)); | 107 metric_name + "." + kv.first)); |
108 report->set_bits(std::string(report_bytes.begin(), report_bytes.end())); | 108 report->set_bits(std::string(report_bytes.begin(), report_bytes.end())); |
109 DVLOG(2) << "Exporting sample " << metric_name << "." << kv.first; | 109 DVLOG(2) << "Exporting sample " << metric_name << "." << kv.first; |
110 } | 110 } |
111 } | 111 } |
112 | 112 |
113 } // namespace rappor | 113 } // namespace rappor |
OLD | NEW |