Chromium Code Reviews| Index: components/metrics/histogram_encoder.h |
| diff --git a/components/metrics/histogram_encoder.h b/components/metrics/histogram_encoder.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e5a036d26082adfa79339e60cd2deccc7356e6ff |
| --- /dev/null |
| +++ b/components/metrics/histogram_encoder.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// This file defines an utility function that records any changes in a given |
| +// histogram for transmission. |
| + |
| +#ifndef COMPONENTS_METRICS_HISTOGRAM_ENCODER_H_ |
| +#define COMPONENTS_METRICS_HISTOGRAM_ENCODER_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/basictypes.h" |
| +#include "components/metrics/proto/chrome_user_metrics_extension.pb.h" |
| + |
| +namespace base { |
| +class HistogramSamples; |
| +} |
| + |
| +namespace metrics { |
| + |
| +// Record any changes in a given histogram for transmission. |
|
mef
2014/12/11 23:11:41
maybe better comment?
ramant (doing other things)
2014/12/12 02:43:05
Done.
|
| +void EncodeHistogramDelta(const std::string& histogram_name, |
| + const base::HistogramSamples& snapshot, |
| + ChromeUserMetricsExtension* uma_proto); |
| + |
| +} // namespace metrics |
| + |
| +#endif // COMPONENTS_METRICS_HISTOGRAM_ENCODER_H_ |