#include "components/reporting/metrics/metric_report_queue.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "components/reporting/client/report_queue.h"
#include "components/reporting/metrics/metric_rate_controller.h"
#include "components/reporting/metrics/reporting_settings.h"
#include "components/reporting/proto/synced/metric_data.pb.h"
#include "components/reporting/util/status.h"
namespace reporting {
MetricReportQueue::MetricReportQueue(
std::unique_ptr<ReportQueue, base::OnTaskRunnerDeleter> report_queue,
Priority priority)
: … { … }
MetricReportQueue::MetricReportQueue(
std::unique_ptr<ReportQueue, base::OnTaskRunnerDeleter> report_queue,
Priority priority,
ReportingSettings* reporting_settings,
const std::string& rate_setting_path,
base::TimeDelta default_rate,
int rate_unit_to_ms)
: … { … }
MetricReportQueue::~MetricReportQueue() = default;
void MetricReportQueue::Enqueue(MetricData metric_data,
ReportQueue::EnqueueCallback callback) { … }
void MetricReportQueue::Upload() { … }
Destination MetricReportQueue::GetDestination() const { … }
void MetricReportQueue::Flush() { … }
}