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

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

Issue 1071713004: Enable NPAPI if policy has plugin policies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review changes Created 5 years, 8 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_PLUGIN_POLICY_HANDLER_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_POLICY_HANDLER_H_
7
8 #include "components/policy/core/browser/configuration_policy_handler.h"
9
10 class PrefValueMap;
11
12 namespace policy {
13
14 class PolicyErrorMap;
15 class PolicyMap;
16
17 // ConfigurationPolicyHandler for the plugin policies that re-enable NPAPI.
18 class PluginPolicyHandler : public ConfigurationPolicyHandler {
Mattias Nissler (ping if slow) 2015/04/10 19:22:45 It probably makes sense to rename PluginPolicyHand
19 public:
20 PluginPolicyHandler();
21
22 ~PluginPolicyHandler() override;
23
24 // ConfigurationPolicyHandler methods:
25 void ApplyPolicySettings(const PolicyMap& policies,
26 PrefValueMap* prefs) override;
27 // ConfigurationPolicyHandler methods:
28 bool CheckPolicySettings(const PolicyMap& policies,
29 PolicyErrorMap* prefs) override;
30
31 DISALLOW_COPY_AND_ASSIGN(PluginPolicyHandler);
Mattias Nissler (ping if slow) 2015/04/10 19:22:45 nit: #include "base/macros.h"
32 };
33
34 } // namespace policy
35
36 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_POLICY_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_policy_handler.cc » ('j') | content/public/browser/plugin_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698