Chromium Code Reviews| Index: components/plugins/common/plugins_field_trial.h |
| diff --git a/components/plugins/common/plugins_field_trial.h b/components/plugins/common/plugins_field_trial.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..eefae30f48aed95dc036a544233aaf568006044a |
| --- /dev/null |
| +++ b/components/plugins/common/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 COMPONENTS_PLUGINS_COMMON_PLUGINS_FIELD_TRIAL_H_ |
| +#define COMPONENTS_PLUGINS_COMMON_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 EnableForcePluginPowerSaver(); |
|
Lei Zhang
2015/03/28 01:11:58
EnableFoo sounds like a verb. This should be IsFoo
tommycli
2015/03/30 18:25:16
Done.
|
| + |
| + private: |
| + DISALLOW_IMPLICIT_CONSTRUCTORS(PluginsFieldTrial); |
| +}; |
| + |
| +#endif // COMPONENTS_PLUGINS_COMMON_PLUGINS_FIELD_TRIAL_H_ |