blob: e52bad2aa31b2f4918ad93cdf77a7d6983d63088 [file] [log] [blame]
// Copyright 2022 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_USER_SESSION_USER_SESSION_FACTORY_H_
#define CRYPTOHOME_USER_SESSION_USER_SESSION_FACTORY_H_
#include <memory>
#include <string>
#include "cryptohome/user_session/user_session.h"
#include "cryptohome/username.h"
namespace cryptohome {
class UserSessionFactory {
public:
UserSessionFactory() = default;
virtual ~UserSessionFactory() = default;
virtual std::unique_ptr<UserSession> New(const Username& username,
bool legacy_mount,
bool bind_mount_downloads) = 0;
};
} // namespace cryptohome
#endif // CRYPTOHOME_USER_SESSION_USER_SESSION_FACTORY_H_