| Index: components/metrics/persisted_logs_metrics_impl.h
|
| diff --git a/components/metrics/persisted_logs_metrics_impl.h b/components/metrics/persisted_logs_metrics_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2a72cc47588edc38773bdba6a01b952158243c08
|
| --- /dev/null
|
| +++ b/components/metrics/persisted_logs_metrics_impl.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_IMPL_H_
|
| +#define COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_IMPL_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "components/metrics/persisted_logs_metrics.h"
|
| +
|
| +namespace metrics {
|
| +
|
| +// Maintains a list of unsent logs that are written and restored from disk.
|
| +class PersistedLogsMetricsImpl : public PersistedLogsMetrics {
|
| + public:
|
| + PersistedLogsMetricsImpl() {}
|
| + ~PersistedLogsMetricsImpl() {}
|
| +
|
| + PersistedLogs::LogReadStatus RecordLogReadStatus(
|
| + PersistedLogs::LogReadStatus status) override;
|
| +
|
| + void RecordCompressionRatio(
|
| + size_t compressed_size, size_t original_size) override;
|
| +
|
| + void RecordDroppedLogSize(size_t size) override;
|
| +
|
| + void RecordDroppedLogsNum(int dropped_logs_num) override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(PersistedLogsMetricsImpl);
|
| +};
|
| +
|
| +} // namespace metrics
|
| +
|
| +#endif // COMPONENTS_METRICS_PERSISTED_LOGS_METRICS_IMPL_H_
|
|
|