Chromium Code Reviews| Index: base/metrics/metric_sample.h |
| diff --git a/base/metrics/metric_sample.h b/base/metrics/metric_sample.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3c5e7e222bbe782ccc340460b4244a43cf7cb35c |
| --- /dev/null |
| +++ b/base/metrics/metric_sample.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright (c) 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. |
| + |
| +# ifndef BASE_METRICS_METRIC_SAMPLE_H_ |
| +# define BASE_METRICS_METRIC_SAMPLE_H_ |
| + |
| +#include "base/base_export.h" |
| + |
| +namespace base { |
| +class BASE_EXPORT MetricSample { |
| + public: |
| + enum SampleType { |
| + CRASH, |
| + HISTOGRAM, |
| + LINEAR_HISTOGRAM, |
| + SPARSE_HISTOGRAM, |
| + USER_ACTION |
| + }; |
| + explicit MetricSample(SampleType t); |
| + virtual ~MetricSample(); |
| + virtual int Write(int buffer_size, char* buffer); |
| + SampleType type; |
| + SampleType getType(); |
|
achaulk
2014/04/07 22:16:00
name() for accessor and name_. The variable also s
|
| +}; |
| +} // namespace base |
| +# endif // BASE_METRICS_METRIC_SAMPLE_H_ |