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 COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_IMPL_H_ | 5 #ifndef COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_IMPL_H_ |
6 #define COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_IMPL_H_ | 6 #define COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/metrics/persisted_logs_metrics.h" | 9 #include "components/metrics/persisted_logs_metrics.h" |
10 | 10 |
11 namespace metrics { | 11 namespace metrics { |
12 | 12 |
13 // Implementation for recording metrics from PersistedLogs. | 13 // Implementation for recording metrics from PersistedLogs. |
14 class PersistedLogsMetricsImpl : public PersistedLogsMetrics { | 14 class PersistedLogsMetricsImpl : public PersistedLogsMetrics { |
15 public: | 15 public: |
16 PersistedLogsMetricsImpl() {} | 16 PersistedLogsMetricsImpl() {} |
17 ~PersistedLogsMetricsImpl() {} | 17 ~PersistedLogsMetricsImpl() override {} |
18 | 18 |
19 PersistedLogs::LogReadStatus RecordLogReadStatus( | 19 PersistedLogs::LogReadStatus RecordLogReadStatus( |
20 PersistedLogs::LogReadStatus status) override; | 20 PersistedLogs::LogReadStatus status) override; |
21 | 21 |
22 void RecordCompressionRatio( | 22 void RecordCompressionRatio( |
23 size_t compressed_size, size_t original_size) override; | 23 size_t compressed_size, size_t original_size) override; |
24 | 24 |
25 void RecordDroppedLogSize(size_t size) override; | 25 void RecordDroppedLogSize(size_t size) override; |
26 | 26 |
27 void RecordDroppedLogsNum(int dropped_logs_num) override; | 27 void RecordDroppedLogsNum(int dropped_logs_num) override; |
28 | 28 |
29 private: | 29 private: |
30 DISALLOW_COPY_AND_ASSIGN(PersistedLogsMetricsImpl); | 30 DISALLOW_COPY_AND_ASSIGN(PersistedLogsMetricsImpl); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace metrics | 33 } // namespace metrics |
34 | 34 |
35 #endif // COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_IMPL_H_ | 35 #endif // COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_IMPL_H_ |
OLD | NEW |