chromium/chrome/browser/ash/plugin_vm/plugin_vm_installer_factory.h

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_ASH_PLUGIN_VM_PLUGIN_VM_INSTALLER_FACTORY_H_
#define CHROME_BROWSER_ASH_PLUGIN_VM_PLUGIN_VM_INSTALLER_FACTORY_H_

#include "base/no_destructor.h"
#include "chrome/browser/profiles/profile_keyed_service_factory.h"

namespace content {
class BrowserContext;
}  // namespace content

class Profile;

namespace plugin_vm {

class PluginVmInstaller;

class PluginVmInstallerFactory : public ProfileKeyedServiceFactory {
 public:
  static PluginVmInstaller* GetForProfile(Profile* profile);
  static PluginVmInstallerFactory* GetInstance();

  PluginVmInstallerFactory(const PluginVmInstallerFactory&) = delete;
  PluginVmInstallerFactory& operator=(const PluginVmInstallerFactory&) = delete;

 private:
  friend base::NoDestructor<PluginVmInstallerFactory>;

  PluginVmInstallerFactory();
  ~PluginVmInstallerFactory() override;

  // BrowserContextKeyedServiceFactory implementation.
  std::unique_ptr<KeyedService> BuildServiceInstanceForBrowserContext(
      content::BrowserContext* context) const override;
};

}  // namespace plugin_vm

#endif  // CHROME_BROWSER_ASH_PLUGIN_VM_PLUGIN_VM_INSTALLER_FACTORY_H_