1 // Copyright 2015 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 CHROME_BROWSER_PLUGINS_ENABLE_NPAPI_PLUGINS_POLICY_HANDLER_H_
6 #define CHROME_BROWSER_PLUGINS_ENABLE_NPAPI_PLUGINS_POLICY_HANDLER_H_
8 #include "base/macros.h"
9 #include "components/policy/core/browser/configuration_policy_handler.h"
18 // ConfigurationPolicyHandler for the plugin policies that re-enable NPAPI.
19 class EnableNpapiPluginsPolicyHandler
: public ConfigurationPolicyHandler
{
21 EnableNpapiPluginsPolicyHandler();
23 ~EnableNpapiPluginsPolicyHandler() override
;
25 // ConfigurationPolicyHandler methods:
26 void ApplyPolicySettings(const PolicyMap
& policies
,
27 PrefValueMap
* prefs
) override
;
28 // ConfigurationPolicyHandler methods:
29 bool CheckPolicySettings(const PolicyMap
& policies
,
30 PolicyErrorMap
* prefs
) override
;
32 DISALLOW_COPY_AND_ASSIGN(EnableNpapiPluginsPolicyHandler
);
37 #endif // CHROME_BROWSER_PLUGINS_ENABLE_NPAPI_PLUGINS_POLICY_HANDLER_H_