blob: b08184cebbab422fb3f7fe46bd9d7eb9bb0f1649 [file] [log] [blame]
// Copyright 2020 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CRYPTOHOME_KEY_CHALLENGE_SERVICE_FACTORY_H_
#define CRYPTOHOME_KEY_CHALLENGE_SERVICE_FACTORY_H_
#include <memory>
#include <string>
#include <base/memory/ref_counted.h>
#include <dbus/bus.h>
#include "cryptohome/key_challenge_service.h"
namespace cryptohome {
class KeyChallengeServiceFactory {
public:
KeyChallengeServiceFactory() = default;
KeyChallengeServiceFactory(const KeyChallengeServiceFactory&) = delete;
KeyChallengeServiceFactory& operator=(const KeyChallengeServiceFactory&) =
delete;
virtual ~KeyChallengeServiceFactory() = default;
virtual void SetMountThreadBus(scoped_refptr<::dbus::Bus> bus) = 0;
virtual std::unique_ptr<KeyChallengeService> New(
const std::string& key_delegate_dbus_service_name) = 0;
};
} // namespace cryptohome
#endif // CRYPTOHOME_KEY_CHALLENGE_SERVICE_FACTORY_H_