chromium/chrome/browser/enterprise/browser_management/browser_management_status_provider.h

// Copyright 2020 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_ENTERPRISE_BROWSER_MANAGEMENT_BROWSER_MANAGEMENT_STATUS_PROVIDER_H_
#define CHROME_BROWSER_ENTERPRISE_BROWSER_MANAGEMENT_BROWSER_MANAGEMENT_STATUS_PROVIDER_H_

#include "base/memory/raw_ptr.h"
#include "build/chromeos_buildflags.h"
#include "components/policy/core/common/management/management_service.h"

#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/policy/core/browser_policy_connector_ash.h"
#endif

EnterpriseManagementAuthority;
ManagementAuthorityTrustworthiness;

class Profile;

// TODO (crbug/1238355): Add unit tests for this file.

class BrowserCloudManagementStatusProvider final
    : public policy::ManagementStatusProvider {};

class LocalBrowserManagementStatusProvider final
    : public policy::ManagementStatusProvider {};

class LocalDomainBrowserManagementStatusProvider final
    : public policy::ManagementStatusProvider {};

class ProfileCloudManagementStatusProvider final
    : public policy::ManagementStatusProvider {};

class LocalTestPolicyUserManagementProvider final
    : public policy::ManagementStatusProvider {};

class LocalTestPolicyBrowserManagementProvider final
    : public policy::ManagementStatusProvider {};

#if BUILDFLAG(IS_CHROMEOS_ASH)
// Returns the platform managment status of ChromeOS Ash devices. For LaCros,
// see DeviceEnterpriseManagedStatusProvider which needs to be defined under
// c/policy/core/common/management/platform_management_status_provider_lacros.
class DeviceManagementStatusProvider final
    : public policy::ManagementStatusProvider {
 public:
  DeviceManagementStatusProvider();
  ~DeviceManagementStatusProvider() final;

 protected:
  // ManagementStatusProvider impl
  EnterpriseManagementAuthority FetchAuthority() final;
};
#endif

#endif  // CHROME_BROWSER_ENTERPRISE_BROWSER_MANAGEMENT_BROWSER_MANAGEMENT_STATUS_PROVIDER_H_