chromium/components/enterprise/browser/reporting/report_uploader.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {
// Retry starts with 1 minute delay and is doubled with every failure.
const net::BackoffEntry::Policy kDefaultReportUploadBackoffPolicy =;

void RecordReportResponseMetrics(ReportResponseMetricsStatus status) {}

}  // namespace

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() {}

}  // namespace enterprise_reporting