chromium/chromeos/ash/services/device_sync/public/cpp/cryptauth_device_id_provider.h

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

#ifndef CHROMEOS_ASH_SERVICES_DEVICE_SYNC_PUBLIC_CPP_CRYPTAUTH_DEVICE_ID_PROVIDER_H_
#define CHROMEOS_ASH_SERVICES_DEVICE_SYNC_PUBLIC_CPP_CRYPTAUTH_DEVICE_ID_PROVIDER_H_

#include <string>

namespace ash {

namespace device_sync {

// Provides the ID of the current device. In this context, "device ID" refers to
// the |long_device_id| field of the cryptauth::GcmDeviceInfo proto which is
// sent to the CryptAuth back-end during device enrollment.
class CryptAuthDeviceIdProvider {
 public:
  CryptAuthDeviceIdProvider() = default;

  CryptAuthDeviceIdProvider(const CryptAuthDeviceIdProvider&) = delete;
  CryptAuthDeviceIdProvider& operator=(const CryptAuthDeviceIdProvider&) =
      delete;

  virtual ~CryptAuthDeviceIdProvider() = default;

  virtual std::string GetDeviceId() const = 0;
};

}  // namespace device_sync

}  // namespace ash

#endif  // CHROMEOS_ASH_SERVICES_DEVICE_SYNC_PUBLIC_CPP_CRYPTAUTH_DEVICE_ID_PROVIDER_H_