1 // Copyright 2023 The Chromium Authors 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_STRUCTURED_REPORTING_STRUCTURED_METRICS_LOG_METRICS_H_ 6 #define COMPONENTS_METRICS_STRUCTURED_REPORTING_STRUCTURED_METRICS_LOG_METRICS_H_ 7 8 #include "components/metrics/unsent_log_store_metrics.h" 9 10 namespace metrics::structured::reporting { 11 12 class StructuredMetricsLogMetrics : public UnsentLogStoreMetrics { 13 public: 14 StructuredMetricsLogMetrics() = default; 15 16 ~StructuredMetricsLogMetrics() override = default; 17 18 void RecordCompressionRatio(size_t compressed_size, 19 size_t original_size) override; 20 21 void RecordDroppedLogSize(size_t size) override; 22 23 void RecordDroppedLogsNum(int dropped_logs_num) override; 24 }; 25 26 } // namespace metrics::structured::reporting 27 28 #endif // COMPONENTS_METRICS_STRUCTURED_REPORTING_STRUCTURED_METRICS_LOG_METRICS_H_ 29