ftl_host_device_id_provider.h 824 B

1234567891011121314151617181920212223242526272829
  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_HOST_DEVICE_ID_PROVIDER_H_
  5. #define REMOTING_SIGNALING_FTL_HOST_DEVICE_ID_PROVIDER_H_
  6. #include <string>
  7. #include "remoting/signaling/ftl_device_id_provider.h"
  8. namespace remoting {
  9. // FtlDeviceIdProvider implementation for chromoting host, which simply wraps
  10. // the host ID.
  11. class FtlHostDeviceIdProvider final : public FtlDeviceIdProvider {
  12. public:
  13. explicit FtlHostDeviceIdProvider(const std::string& host_id);
  14. ~FtlHostDeviceIdProvider() override;
  15. ftl::DeviceId GetDeviceId() override;
  16. private:
  17. ftl::DeviceId device_id_;
  18. };
  19. } // namespace remoting
  20. #endif // REMOTING_SIGNALING_FTL_HOST_DEVICE_ID_PROVIDER_H_