blob: 89341a62823722f3f60ba8cf924a5394e2f13f49 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_SERVICES_MULTIDEVICE_SETUP_ELIGIBLE_HOST_DEVICES_PROVIDER_H_
#define CHROMEOS_SERVICES_MULTIDEVICE_SETUP_ELIGIBLE_HOST_DEVICES_PROVIDER_H_
#include "base/macros.h"
#include "components/cryptauth/remote_device_ref.h"
namespace chromeos {
namespace multidevice_setup {
// Provides all remote devices which are eligible to be MultiDevice hosts.
class EligibleHostDevicesProvider {
public:
virtual ~EligibleHostDevicesProvider() = default;
// Returns all eligible host devices. In this context, this means that the
// devices have a SoftwareFeatureState of kSupported or kEnabled for the
// BETTER_TOGETHER_HOST feature.
virtual cryptauth::RemoteDeviceRefList GetEligibleHostDevices() const = 0;
protected:
EligibleHostDevicesProvider() = default;
private:
DISALLOW_COPY_AND_ASSIGN(EligibleHostDevicesProvider);
};
} // namespace multidevice_setup
} // namespace chromeos
#endif // CHROMEOS_SERVICES_MULTIDEVICE_SETUP_ELIGIBLE_HOST_DEVICES_PROVIDER_H_