#include "components/reporting/client/report_queue_factory.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/task/bind_post_task.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "components/reporting/client/report_queue_configuration.h"
#include "components/reporting/client/report_queue_provider.h"
#include "components/reporting/util/backoff_settings.h"
#include "components/reporting/util/rate_limiter_interface.h"
#include "net/base/backoff_entry.h"
#define LOG_WITH_STATUS(LEVEL, MESSAGE, STATUS) …
namespace reporting {
void ReportQueueFactory::Create(
ReportQueueConfiguration::Builder config_builder,
SuccessCallback done_cb) { … }
std::unique_ptr<ReportQueue, base::OnTaskRunnerDeleter>
ReportQueueFactory::CreateSpeculativeReportQueue(
ReportQueueConfiguration::Builder config_builder) { … }
void ReportQueueFactory::Create(
EventType event_type,
Destination destination,
SuccessCallback success_cb,
std::unique_ptr<RateLimiterInterface> rate_limiter,
int64_t reserved_space) { … }
std::unique_ptr<ReportQueue, base::OnTaskRunnerDeleter>
ReportQueueFactory::CreateSpeculativeReportQueue(
EventType event_type,
Destination destination,
std::unique_ptr<RateLimiterInterface> rate_limiter,
int64_t reserved_space) { … }
ReportQueueFactory::TrySetReportQueueCallback
ReportQueueFactory::CreateTrySetCallback(
SuccessCallback success_cb,
std::unique_ptr<::net::BackoffEntry> backoff_entry) { … }
void ReportQueueFactory::TrySetReportQueue(
SuccessCallback success_cb,
StatusOr<std::unique_ptr<ReportQueue>> report_queue_result) { … }
}