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

Unified Diff: chrome/browser/plugins/plugins_field_trial.h

Issue 1033103002: Plugin Power Saver: Overhaul plugin-power-saver flags. Show in UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « chrome/browser/plugins/plugin_info_message_filter.cc ('k') | chrome/browser/plugins/plugins_field_trial.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugins_field_trial.h
diff --git a/chrome/browser/plugins/plugins_field_trial.h b/chrome/browser/plugins/plugins_field_trial.h
new file mode 100644
index 0000000000000000000000000000000000000000..3b4d1c348c70e46f841aef5451518ef7743ec62e
--- /dev/null
+++ b/chrome/browser/plugins/plugins_field_trial.h
@@ -0,0 +1,28 @@
+// Copyright 2015 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_PLUGINS_FIELD_TRIAL_H_
+#define CHROME_BROWSER_PLUGINS_PLUGINS_FIELD_TRIAL_H_
+
+#include "base/macros.h"
+#include "components/content_settings/core/common/content_settings.h"
+#include "components/content_settings/core/common/content_settings_types.h"
+
+// This class manages the Plugins field trials.
+class PluginsFieldTrial {
+ public:
+ // Returns the effective content setting for plugins. Passes non-plugin
+ // content settings through without modification.
+ static ContentSetting EffectiveContentSetting(ContentSettingsType type,
+ ContentSetting setting);
+
+ // Returns true if the Plugin Power Saver feature is forced on, overriding
+ // the user's Content Settings.
+ static bool IsForcePluginPowerSaverEnabled();
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(PluginsFieldTrial);
+};
+
+#endif // CHROME_BROWSER_PLUGINS_PLUGINS_FIELD_TRIAL_H_
« no previous file with comments | « chrome/browser/plugins/plugin_info_message_filter.cc ('k') | chrome/browser/plugins/plugins_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698