#include "components/enterprise/client_certificates/core/browser_cloud_management_delegate.h"
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include "base/check.h"
#include "base/memory/scoped_refptr.h"
#include "components/enterprise/browser/controller/browser_dm_token_storage.h"
#include "components/enterprise/client_certificates/core/dm_server_client.h"
#include "components/policy/proto/device_management_backend.pb.h"
namespace enterprise_attestation {
BrowserCloudManagementDelegate::BrowserCloudManagementDelegate(
policy::BrowserDMTokenStorage* dm_token_storage,
std::unique_ptr<DMServerClient> dm_server_client)
: … { … }
BrowserCloudManagementDelegate::~BrowserCloudManagementDelegate() = default;
void BrowserCloudManagementDelegate::UploadBrowserPublicKey(
const enterprise_management::DeviceManagementRequest& upload_request,
policy::DMServerJobConfiguration::Callback callback) { … }
std::optional<std::string> BrowserCloudManagementDelegate::GetDMToken() const { … }
}