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

Unified 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: add missing files 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/plugins/plugin_policy_handler.h
diff --git a/chrome/browser/plugins/plugin_policy_handler.h b/chrome/browser/plugins/plugin_policy_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..ff685088b8b4eef4fc7f2cdf6a72d27755b18a65
--- /dev/null
+++ b/chrome/browser/plugins/plugin_policy_handler.h
@@ -0,0 +1,43 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PLUGINS_PLUGIN_POLICY_HANDLER_H_
+#define CHROME_BROWSER_PLUGINS_PLUGIN_POLICY_HANDLER_H_
+
+#include "components/policy/core/browser/configuration_policy_handler.h"
+
+class PrefValueMap;
+
+namespace base {
+class Value;
+}
+
+namespace policy {
+
+class PolicyErrorMap;
+class PolicyMap;
+
+// ConfigurationPolicyHandler for the plugin policies that re-enable NPAPI.
+class PluginPolicyHandler : public TypeCheckingPolicyHandler {
+ public:
+ PluginPolicyHandler(const char* policy_name,
+ const char* pref_path,
+ base::Value::Type value_type);
+
+ ~PluginPolicyHandler() override;
+
+ // ConfigurationPolicyHandler methods:
+ void ApplyPolicySettings(const PolicyMap& policies,
+ PrefValueMap* prefs) override;
+
+ private:
+ // The DictionaryValue path of the preference the policy maps to.
+ const char* pref_path_;
+
+ DISALLOW_COPY_AND_ASSIGN(PluginPolicyHandler);
+};
+
+} // namespace policy
+
+#endif // CHROME_BROWSER_PLUGINS_PLUGIN_POLICY_HANDLER_H_
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_policy_handler.cc » ('j') | chrome/browser/plugins/plugin_policy_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698