blob: b87323171c1d6cbd758b93d8af278ccd08fa94e6 [file] [log] [blame]
// Copyright 2013 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_SYNC_SERVICE_SYNC_POLICY_HANDLER_H_
#define COMPONENTS_SYNC_SERVICE_SYNC_POLICY_HANDLER_H_
#include "base/compiler_specific.h"
#include "components/policy/core/browser/configuration_policy_handler.h"
class PrefValueMap;
namespace policy {
class PolicyMap;
} // namespace policy
namespace syncer {
// ConfigurationPolicyHandler for the SyncDisabled policy, which also handles
// the SyncTypesListDisabled policy.
class SyncPolicyHandler : public policy::TypeCheckingPolicyHandler {
public:
SyncPolicyHandler();
SyncPolicyHandler(const SyncPolicyHandler&) = delete;
SyncPolicyHandler& operator=(const SyncPolicyHandler&) = delete;
~SyncPolicyHandler() override;
// ConfigurationPolicyHandler methods:
bool CheckPolicySettings(const policy::PolicyMap& policies,
policy::PolicyErrorMap* errors) override;
void ApplyPolicySettings(const policy::PolicyMap& policies,
PrefValueMap* prefs) override;
};
} // namespace syncer
#endif // COMPONENTS_SYNC_SERVICE_SYNC_POLICY_HANDLER_H_