Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: components/ukm/persisted_logs_metrics_impl.h

Issue 2689323010: Split a MetricsLogStore object out of MetricsLogManager. (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_UKM_PERSISTED_LOGS_METRICS_IMPL_H_ 5 #ifndef COMPONENTS_UKM_PERSISTED_LOGS_METRICS_IMPL_H_
6 #define COMPONENTS_UKM_PERSISTED_LOGS_METRICS_IMPL_H_ 6 #define COMPONENTS_UKM_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 ukm { 11 namespace ukm {
12 12
13 // Implementation for recording metrics from PersistedLogs. 13 // Implementation for recording metrics from PersistedLogs.
14 class PersistedLogsMetricsImpl : public metrics::PersistedLogsMetrics { 14 class PersistedLogsMetricsImpl : public metrics::PersistedLogsMetrics {
15 public: 15 public:
16 PersistedLogsMetricsImpl(); 16 PersistedLogsMetricsImpl();
17 ~PersistedLogsMetricsImpl() override; 17 ~PersistedLogsMetricsImpl() override;
18 18
19 // metrics::PersistedLogsMetrics: 19 // metrics::PersistedLogsMetrics:
20 metrics::PersistedLogs::LogReadStatus RecordLogReadStatus( 20 void RecordLogReadStatus(
21 metrics::PersistedLogs::LogReadStatus status) override; 21 metrics::PersistedLogsMetrics::LogReadStatus status) override;
22 void RecordCompressionRatio(size_t compressed_size, 22 void RecordCompressionRatio(size_t compressed_size,
23 size_t original_size) override; 23 size_t original_size) override;
24 void RecordDroppedLogSize(size_t size) override; 24 void RecordDroppedLogSize(size_t size) override;
25 void RecordDroppedLogsNum(int dropped_logs_num) override; 25 void RecordDroppedLogsNum(int dropped_logs_num) override;
26 26
27 private: 27 private:
28 DISALLOW_COPY_AND_ASSIGN(PersistedLogsMetricsImpl); 28 DISALLOW_COPY_AND_ASSIGN(PersistedLogsMetricsImpl);
29 }; 29 };
30 30
31 } // namespace ukm 31 } // namespace ukm
32 32
33 #endif // COMPONENTS_UKM_PERSISTED_LOGS_METRICS_IMPL_H_ 33 #endif // COMPONENTS_UKM_PERSISTED_LOGS_METRICS_IMPL_H_
OLDNEW
« no previous file with comments | « components/metrics/persisted_logs_unittest.cc ('k') | components/ukm/persisted_logs_metrics_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698