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

Side by Side Diff: chrome/browser/plugins/plugin_prefs.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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_ 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 std::map<base::FilePath, bool> state_; 100 std::map<base::FilePath, bool> state_;
101 }; 101 };
102 102
103 ~PluginPrefs() override; 103 ~PluginPrefs() override;
104 104
105 // Called to update one of the policy_xyz patterns below when a 105 // Called to update one of the policy_xyz patterns below when a
106 // preference changes. 106 // preference changes.
107 void UpdatePatternsAndNotify(std::set<base::string16>* patterns, 107 void UpdatePatternsAndNotify(std::set<base::string16>* patterns,
108 const std::string& pref_name); 108 const std::string& pref_name);
109 109
110 // Called to enable NPAPI if kEnableNpapi gets set by policy.
111 void EnableNpapi();
112
113 // Allows unit tests to directly set enforced plugin patterns. 110 // Allows unit tests to directly set enforced plugin patterns.
114 void SetPolicyEnforcedPluginPatterns( 111 void SetPolicyEnforcedPluginPatterns(
115 const std::set<base::string16>& disabled_patterns, 112 const std::set<base::string16>& disabled_patterns,
116 const std::set<base::string16>& disabled_exception_patterns, 113 const std::set<base::string16>& disabled_exception_patterns,
117 const std::set<base::string16>& enabled_patterns); 114 const std::set<base::string16>& enabled_patterns);
118 115
119 // Callback for after the plugin groups have been loaded. 116 // Callback for after the plugin groups have been loaded.
120 void EnablePluginGroupInternal( 117 void EnablePluginGroupInternal(
121 bool enabled, 118 bool enabled,
122 const base::string16& group_name, 119 const base::string16& group_name,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 153
157 // Weak pointer, owned by the profile. 154 // Weak pointer, owned by the profile.
158 PrefService* prefs_; 155 PrefService* prefs_;
159 156
160 PrefChangeRegistrar registrar_; 157 PrefChangeRegistrar registrar_;
161 158
162 DISALLOW_COPY_AND_ASSIGN(PluginPrefs); 159 DISALLOW_COPY_AND_ASSIGN(PluginPrefs);
163 }; 160 };
164 161
165 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_ 162 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698