chromium/components/policy/core/browser/remote_commands/user_remote_commands_service_base.h

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

#ifndef COMPONENTS_POLICY_CORE_BROWSER_REMOTE_COMMANDS_USER_REMOTE_COMMANDS_SERVICE_BASE_H_
#define COMPONENTS_POLICY_CORE_BROWSER_REMOTE_COMMANDS_USER_REMOTE_COMMANDS_SERVICE_BASE_H_

#include <memory>

#include "base/memory/raw_ptr.h"
#include "base/scoped_observation.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/policy/core/common/cloud/cloud_policy_service.h"
#include "components/policy/policy_export.h"

namespace invalidation {
class ProfileInvalidationProvider;
}

namespace policy {

class CloudPolicyCore;
class RemoteCommandsFactory;
class RemoteCommandsInvalidator;

// A `KeyedService` of UserRemoteCommandService which is responsible for
// initialize and maintain the ownership of a remote command service at the
// profile scope. More details can be found at b/276764782
// The base class contains all logic that can be shared with iOS in the future.
class POLICY_EXPORT UserRemoteCommandsServiceBase
    : public KeyedService,
      public CloudPolicyService::Observer {};

}  // namespace policy

#endif  // COMPONENTS_POLICY_CORE_BROWSER_REMOTE_COMMANDS_USER_REMOTE_COMMANDS_SERVICE_BASE_H_