OLD | NEW |
(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 COMPONENTS_PLUGINS_COMMON_PLUGINS_FIELD_TRIAL_H_ |
| 6 #define COMPONENTS_PLUGINS_COMMON_PLUGINS_FIELD_TRIAL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/content_settings/core/common/content_settings.h" |
| 10 #include "components/content_settings/core/common/content_settings_types.h" |
| 11 |
| 12 // This class manages the Plugins field trials. |
| 13 class PluginsFieldTrial { |
| 14 public: |
| 15 // Returns the effective content setting for plugins. Passes non-plugin |
| 16 // content settings through without modification. |
| 17 static ContentSetting EffectiveContentSetting(ContentSettingsType type, |
| 18 ContentSetting setting); |
| 19 |
| 20 // Returns true if the Plugin Power Saver feature is forced on, overriding |
| 21 // the user's Content Settings. |
| 22 static bool IsForcePluginPowerSaverEnabled(); |
| 23 |
| 24 private: |
| 25 DISALLOW_IMPLICIT_CONSTRUCTORS(PluginsFieldTrial); |
| 26 }; |
| 27 |
| 28 #endif // COMPONENTS_PLUGINS_COMMON_PLUGINS_FIELD_TRIAL_H_ |
OLD | NEW |