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. 4 5 #ifndef COMPONENTS_POLICY_CORE_BROWSER_URL_BLACKLIST_POLICY_HANDLER_H_ 6 #define COMPONENTS_POLICY_CORE_BROWSER_URL_BLACKLIST_POLICY_HANDLER_H_ 7 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" 12 13 namespace policy { 14 15 // Handles URLBlacklist policies. 16 class POLICY_EXPORT URLBlacklistPolicyHandler 17 : public ConfigurationPolicyHandler { 18 public: 19 URLBlacklistPolicyHandler(); 20 virtual ~URLBlacklistPolicyHandler(); 21 22 // ConfigurationPolicyHandler methods: 23 virtual bool CheckPolicySettings(const PolicyMap& policies, 24 PolicyErrorMap* errors) OVERRIDE; 25 virtual void ApplyPolicySettings(const PolicyMap& policies, 26 PrefValueMap* prefs) OVERRIDE; 27 28 private: 29 DISALLOW_COPY_AND_ASSIGN(URLBlacklistPolicyHandler); 30 }; 31 32 } // namespace policy 33 34 #endif // COMPONENTS_POLICY_CORE_BROWSER_URL_BLACKLIST_POLICY_HANDLER_H_ 35