OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_HISTOGRAM_PERSISTENCE_H_ | 5 #ifndef BASE_METRICS_HISTOGRAM_PERSISTENCE_H_ |
6 #define BASE_METRICS_HISTOGRAM_PERSISTENCE_H_ | 6 #define BASE_METRICS_HISTOGRAM_PERSISTENCE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/atomicops.h" | 11 #include "base/atomicops.h" |
12 #include "base/base_export.h" | 12 #include "base/base_export.h" |
13 #include "base/feature_list.h" | 13 #include "base/feature_list.h" |
14 #include "base/memory/shared_memory.h" | 14 #include "base/memory/shared_memory.h" |
15 #include "base/metrics/histogram_base.h" | 15 #include "base/metrics/histogram_base.h" |
16 #include "base/metrics/persistent_memory_allocator.h" | 16 #include "base/metrics/persistent_memory_allocator.h" |
17 #include "base/strings/string_piece.h" | 17 #include "base/strings/string_piece.h" |
18 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 | 21 |
| 22 class BucketRanges; |
22 class FilePath; | 23 class FilePath; |
23 class PersistentSampleMapRecords; | 24 class PersistentSampleMapRecords; |
24 class PersistentSparseHistogramDataManager; | 25 class PersistentSparseHistogramDataManager; |
25 | 26 |
26 // Feature definition for enabling histogram persistence. | 27 // Feature definition for enabling histogram persistence. |
27 BASE_EXPORT extern const Feature kPersistentHistogramsFeature; | 28 BASE_EXPORT extern const Feature kPersistentHistogramsFeature; |
28 | 29 |
29 | 30 |
30 // A data manager for sparse histograms so each instance of such doesn't have | 31 // A data manager for sparse histograms so each instance of such doesn't have |
31 // to separately iterate over the entire memory segment. Though this class | 32 // to separately iterate over the entire memory segment. Though this class |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 | 504 |
504 // The location to which the data should be persisted. | 505 // The location to which the data should be persisted. |
505 FilePath persistent_location_; | 506 FilePath persistent_location_; |
506 | 507 |
507 DISALLOW_COPY_AND_ASSIGN(GlobalHistogramAllocator); | 508 DISALLOW_COPY_AND_ASSIGN(GlobalHistogramAllocator); |
508 }; | 509 }; |
509 | 510 |
510 } // namespace base | 511 } // namespace base |
511 | 512 |
512 #endif // BASE_METRICS_HISTOGRAM_PERSISTENCE_H_ | 513 #endif // BASE_METRICS_HISTOGRAM_PERSISTENCE_H_ |
OLD | NEW |