chromium/components/policy/core/common/cloud/dm_token.h

// 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.

#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_DM_TOKEN_H_
#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_DM_TOKEN_H_

#include <string>
#include <string_view>

#include "components/policy/policy_export.h"

namespace policy {

// Represents a DM token with a status, which can be:
// Valid:
//    A valid token to be used to make requests. Its value cannot be empty or
//    equal to `kInvalidTokenValue`.
// Invalid:
//    The token explicitly marks this browser as unenrolled. The browser
//    should not sync policies or try to get a new DM token if it is set to
//    this value.
// Empty:
//    The token is empty. The browser will try to get a valid token if an
//    enrollment token is present.
class POLICY_EXPORT DMToken {};

}  // namespace policy

#endif  // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DM_TOKEN_H_