ftl_device_id_provider.h 843 B

123456789101112131415161718192021222324252627
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef REMOTING_SIGNALING_FTL_DEVICE_ID_PROVIDER_H_
  5. #define REMOTING_SIGNALING_FTL_DEVICE_ID_PROVIDER_H_
  6. #include "remoting/proto/ftl/v1/ftl_messages.pb.h"
  7. namespace remoting {
  8. // Class that provides device ID to be used to sign in for FTL.
  9. class FtlDeviceIdProvider {
  10. public:
  11. virtual ~FtlDeviceIdProvider() = default;
  12. // Gets a device ID to use for signing into FTL. It's the subclass'
  13. // responsibility to store and reuse stored device ID.
  14. //
  15. // Subclass should consider adding prefix to the device ID, like
  16. // "crd-win-host-".
  17. virtual ftl::DeviceId GetDeviceId() = 0;
  18. };
  19. } // namespace remoting
  20. #endif // REMOTING_SIGNALING_FTL_DEVICE_ID_PROVIDER_H_