| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_METRICS_SPARSE_HISTOGRAM_H_ | 5 #ifndef BASE_METRICS_SPARSE_HISTOGRAM_H_ |
| 6 #define BASE_METRICS_SPARSE_HISTOGRAM_H_ | 6 #define BASE_METRICS_SPARSE_HISTOGRAM_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // For constuctor calling. | 91 // For constuctor calling. |
| 92 friend class SparseHistogramTest; | 92 friend class SparseHistogramTest; |
| 93 | 93 |
| 94 // Protects access to |samples_|. | 94 // Protects access to |samples_|. |
| 95 mutable base::Lock lock_; | 95 mutable base::Lock lock_; |
| 96 | 96 |
| 97 // Flag to indicate if PrepareFinalDelta has been previously called. | 97 // Flag to indicate if PrepareFinalDelta has been previously called. |
| 98 mutable bool final_delta_created_ = false; | 98 mutable bool final_delta_created_ = false; |
| 99 | 99 |
| 100 std::unique_ptr<HistogramSamples> samples_; | 100 std::unique_ptr<HistogramSamples> unlogged_samples_; |
| 101 std::unique_ptr<HistogramSamples> logged_samples_; | 101 std::unique_ptr<HistogramSamples> logged_samples_; |
| 102 | 102 |
| 103 DISALLOW_COPY_AND_ASSIGN(SparseHistogram); | 103 DISALLOW_COPY_AND_ASSIGN(SparseHistogram); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace base | 106 } // namespace base |
| 107 | 107 |
| 108 #endif // BASE_METRICS_SPARSE_HISTOGRAM_H_ | 108 #endif // BASE_METRICS_SPARSE_HISTOGRAM_H_ |
| OLD | NEW |