#include "components/metrics/reporting_service.h"
#include <cstdio>
#include <memory>
#include <string_view>
#include "base/base64.h"
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "components/metrics/data_use_tracker.h"
#include "components/metrics/log_store.h"
#include "components/metrics/metrics_features.h"
#include "components/metrics/metrics_log_uploader.h"
#include "components/metrics/metrics_service_client.h"
#include "components/metrics/metrics_upload_scheduler.h"
namespace metrics {
void ReportingService::RegisterPrefs(PrefRegistrySimple* registry) { … }
ReportingService::ReportingService(MetricsServiceClient* client,
PrefService* local_state,
size_t max_retransmit_size,
MetricsLogsEventManager* logs_event_manager)
: … { … }
ReportingService::~ReportingService() { … }
void ReportingService::Initialize() { … }
void ReportingService::Start() { … }
void ReportingService::Stop() { … }
void ReportingService::EnableReporting() { … }
void ReportingService::DisableReporting() { … }
bool ReportingService::reporting_active() const { … }
void ReportingService::SendNextLog() { … }
void ReportingService::SendStagedLog() { … }
void ReportingService::OnLogUploadComplete(
int response_code,
int error_code,
bool was_https,
bool force_discard,
std::string_view force_discard_reason) { … }
}