summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugins/plugins_field_trial.h
blob: 3b4d1c348c70e46f841aef5451518ef7743ec62e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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_