chromium/chrome/browser/ash/policy/remote_commands/user_commands_factory_ash.h

// Copyright 2018 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_POLICY_REMOTE_COMMANDS_USER_COMMANDS_FACTORY_ASH_H_
#define CHROME_BROWSER_ASH_POLICY_REMOTE_COMMANDS_USER_COMMANDS_FACTORY_ASH_H_

#include <memory>

#include "base/memory/raw_ptr.h"
#include "components/policy/core/common/remote_commands/remote_commands_factory.h"

class Profile;

namespace policy {

class UserCommandsFactoryAsh : public RemoteCommandsFactory {
 public:
  explicit UserCommandsFactoryAsh(Profile* profile);

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

  ~UserCommandsFactoryAsh() override;

  // RemoteCommandsFactory:
  std::unique_ptr<RemoteCommandJob> BuildJobForType(
      enterprise_management::RemoteCommand_Type type,
      RemoteCommandsService* service) override;

 private:
  const raw_ptr<Profile> profile_;
};

}  // namespace policy

#endif  // CHROME_BROWSER_ASH_POLICY_REMOTE_COMMANDS_USER_COMMANDS_FACTORY_ASH_H_