// Copyright 2022 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_POLICY_STATUS_PROVIDER_CLOUD_POLICY_CORE_STATUS_PROVIDER_H_ #define CHROME_BROWSER_POLICY_STATUS_PROVIDER_CLOUD_POLICY_CORE_STATUS_PROVIDER_H_ #include "components/policy/core/browser/webui/policy_status_provider.h" #include "components/policy/core/common/cloud/cloud_policy_store.h" namespace policy { class CloudPolicyCore; } // namespace policy // Status provider implementation that pulls cloud policy status from a // CloudPolicyCore instance provided at construction time. Also listens for // changes on that CloudPolicyCore and reports them through the status change // callback. class CloudPolicyCoreStatusProvider : public policy::PolicyStatusProvider, public policy::CloudPolicyStore::Observer { … }; #endif // CHROME_BROWSER_POLICY_STATUS_PROVIDER_CLOUD_POLICY_CORE_STATUS_PROVIDER_H_