#include "components/enterprise/browser/reporting/report_uploader.h"
#include <utility>
#include "base/metrics/histogram_functions.h"
#include "base/time/time.h"
#include "build/chromeos_buildflags.h"
#include "components/enterprise/browser/reporting/report_type.h"
#include "components/policy/core/common/cloud/cloud_policy_client.h"
#include "components/policy/proto/device_management_backend.pb.h"
em;
namespace enterprise_reporting {
namespace {
const net::BackoffEntry::Policy kDefaultReportUploadBackoffPolicy = …;
void RecordReportResponseMetrics(ReportResponseMetricsStatus status) { … }
}
ReportUploader::ReportUploader(policy::CloudPolicyClient* client,
int maximum_number_of_retries)
: … { … }
ReportUploader::~ReportUploader() = default;
void ReportUploader::SetRequestAndUpload(ReportType report_type,
ReportRequestQueue requests,
ReportCallback callback) { … }
void ReportUploader::Upload() { … }
void ReportUploader::OnRequestFinished(
policy::CloudPolicyClient::Result result) { … }
void ReportUploader::Retry() { … }
bool ReportUploader::HasRetriedTooOften() { … }
void ReportUploader::SendResponse(const ReportStatus status) { … }
void ReportUploader::NextRequest() { … }
}