#include "components/policy/core/common/cloud/encrypted_reporting_job_configuration.h"
#include <initializer_list>
#include <optional>
#include <string>
#include <utility>
#include "base/containers/contains.h"
#include "base/containers/flat_set.h"
#include "base/no_destructor.h"
#include "base/strings/string_number_conversions.h"
#include "components/reporting/proto/synced/record_constants.pb.h"
#include "components/reporting/util/encrypted_reporting_json_keys.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
namespace policy {
namespace {
DMAuth GetAuthData(const std::string& dm_token) { … }
}
EncryptedReportingJobConfiguration::EncryptedReportingJobConfiguration(
scoped_refptr<network::SharedURLLoaderFactory> factory,
const std::string& server_url,
base::Value::Dict merging_payload,
const std::string dm_token,
const std::string client_id,
UploadResponseCallback response_cb,
UploadCompleteCallback complete_cb)
: … { … }
EncryptedReportingJobConfiguration::~EncryptedReportingJobConfiguration() { … }
void EncryptedReportingJobConfiguration::UpdatePayloadBeforeGetInternal() { … }
void EncryptedReportingJobConfiguration::UpdateContext(
base::Value::Dict context) { … }
DeviceManagementService::Job::RetryMethod
EncryptedReportingJobConfiguration::ShouldRetry(
int response_code,
const std::string& response_body) { … }
void EncryptedReportingJobConfiguration::OnURLLoadComplete(
DeviceManagementService::Job* job,
int net_error,
int response_code,
const std::string& response_body) { … }
std::string EncryptedReportingJobConfiguration::GetUmaString() const { … }
const base::flat_set<std::string>&
EncryptedReportingJobConfiguration::GetTopLevelKeyAllowList() { … }
}