| 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_METRICS_SERIALIZATION_METRIC_SAMPLE_H_ | 5 #ifndef COMPONENTS_METRICS_SERIALIZATION_METRIC_SAMPLE_H_ |
| 6 #define COMPONENTS_METRICS_SERIALIZATION_METRIC_SAMPLE_H_ | 6 #define COMPONENTS_METRICS_SERIALIZATION_METRIC_SAMPLE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | |
| 11 #include "base/macros.h" | 10 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 13 | 12 |
| 14 namespace metrics { | 13 namespace metrics { |
| 15 | 14 |
| 16 // This class is used by libmetrics (ChromeOS) to serialize | 15 // This class is used by libmetrics (ChromeOS) to serialize |
| 17 // and deserialize measurements to send them to a metrics sending service. | 16 // and deserialize measurements to send them to a metrics sending service. |
| 18 // It is meant to be a simple container with serialization functions. | 17 // It is meant to be a simple container with serialization functions. |
| 19 class MetricSample { | 18 class MetricSample { |
| 20 public: | 19 public: |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const int min_; | 109 const int min_; |
| 111 const int max_; | 110 const int max_; |
| 112 const int bucket_count_; | 111 const int bucket_count_; |
| 113 | 112 |
| 114 DISALLOW_COPY_AND_ASSIGN(MetricSample); | 113 DISALLOW_COPY_AND_ASSIGN(MetricSample); |
| 115 }; | 114 }; |
| 116 | 115 |
| 117 } // namespace metrics | 116 } // namespace metrics |
| 118 | 117 |
| 119 #endif // COMPONENTS_METRICS_SERIALIZATION_METRIC_SAMPLE_H_ | 118 #endif // COMPONENTS_METRICS_SERIALIZATION_METRIC_SAMPLE_H_ |
| OLD | NEW |