blob: 95a15ec40f6cc7a5ca2fecb1b946cf12fcfdb70a [file] [log] [blame]
// Copyright 2016 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_UNSENT_LOG_STORE_METRICS_IMPL_H_
#define COMPONENTS_METRICS_UNSENT_LOG_STORE_METRICS_IMPL_H_
#include "base/macros.h"
#include "components/metrics/unsent_log_store_metrics.h"
namespace metrics {
// Implementation for recording metrics from UnsentLogStore.
class UnsentLogStoreMetricsImpl : public UnsentLogStoreMetrics {
public:
UnsentLogStoreMetricsImpl() {}
~UnsentLogStoreMetricsImpl() override {}
// UnsentLogStoreMetrics:
void RecordLogReadStatus(
UnsentLogStoreMetrics::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(UnsentLogStoreMetricsImpl);
};
} // namespace metrics
#endif // COMPONENTS_METRICS_UNSENT_LOG_STORE_METRICS_IMPL_H_