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

Side by Side Diff: components/metrics/persisted_logs_metrics.h

Issue 2588873002: Delegate PersistedLogs metrics recording (Closed)
Patch Set: Fix tests Created 3 years, 11 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
« no previous file with comments | « components/metrics/persisted_logs.cc ('k') | components/metrics/persisted_logs_metrics_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_H_
6 #define COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_H_
7
8 #include "base/macros.h"
9 #include "components/metrics/persisted_logs.h"
10
11 namespace metrics {
12
13 // Interface for recording metrics from PersistedLogs.
14 class PersistedLogsMetrics {
15 public:
16 PersistedLogsMetrics() {}
17 ~PersistedLogsMetrics() {}
18
19 virtual PersistedLogs::LogReadStatus RecordLogReadStatus(
20 PersistedLogs::LogReadStatus status) = 0;
21
22 virtual void RecordCompressionRatio(
23 size_t compressed_size, size_t original_size) {}
24
25 virtual void RecordDroppedLogSize(size_t size) {}
26
27 virtual void RecordDroppedLogsNum(int dropped_logs_num) {}
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(PersistedLogsMetrics);
31 };
32
33 } // namespace metrics
34
35 #endif // COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_H_
OLDNEW
« no previous file with comments | « components/metrics/persisted_logs.cc ('k') | components/metrics/persisted_logs_metrics_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698