Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: chrome/browser/plugins/enable_npapi_plugins_policy_handler.h

Issue 1158423003: Disable NPAPI support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove enterprise policy override based on revert of 26d09db Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_PLUGINS_ENABLE_NPAPI_PLUGINS_POLICY_HANDLER_H_
6 #define CHROME_BROWSER_PLUGINS_ENABLE_NPAPI_PLUGINS_POLICY_HANDLER_H_
7
8 #include "base/macros.h"
9 #include "components/policy/core/browser/configuration_policy_handler.h"
10
11 class PrefValueMap;
12
13 namespace policy {
14
15 class PolicyErrorMap;
16 class PolicyMap;
17
18 // ConfigurationPolicyHandler for the plugin policies that re-enable NPAPI.
19 class EnableNpapiPluginsPolicyHandler : public ConfigurationPolicyHandler {
20 public:
21 EnableNpapiPluginsPolicyHandler();
22
23 ~EnableNpapiPluginsPolicyHandler() override;
24
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;
31
32 DISALLOW_COPY_AND_ASSIGN(EnableNpapiPluginsPolicyHandler);
33 };
34
35 } // namespace policy
36
37 #endif // CHROME_BROWSER_PLUGINS_ENABLE_NPAPI_PLUGINS_POLICY_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698