1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_POLICY_CORE_BROWSER_URL_BLACKLIST_POLICY_HANDLER_H_
6 #define COMPONENTS_POLICY_CORE_BROWSER_URL_BLACKLIST_POLICY_HANDLER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "components/policy/core/browser/configuration_policy_handler.h"
11 #include "components/policy/policy_export.h"
15 // Handles URLBlacklist policies.
16 class POLICY_EXPORT URLBlacklistPolicyHandler
17 : public ConfigurationPolicyHandler {
19 URLBlacklistPolicyHandler();
20 ~URLBlacklistPolicyHandler() override;
22 // ConfigurationPolicyHandler methods:
23 bool CheckPolicySettings(const PolicyMap& policies,
24 PolicyErrorMap* errors) override;
25 void ApplyPolicySettings(const PolicyMap& policies,
26 PrefValueMap* prefs) override;
29 DISALLOW_COPY_AND_ASSIGN(URLBlacklistPolicyHandler);
34 #endif // COMPONENTS_POLICY_CORE_BROWSER_URL_BLACKLIST_POLICY_HANDLER_H_