| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGINS_FIELD_TRIAL_H_ |
| 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_H_ | 6 #define CHROME_BROWSER_PLUGINS_PLUGINS_FIELD_TRIAL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/content_settings/core/common/content_settings.h" | 9 #include "components/content_settings/core/common/content_settings.h" |
| 10 #include "components/content_settings/core/common/content_settings_types.h" | 10 #include "components/content_settings/core/common/content_settings_types.h" |
| 11 | 11 |
| 12 namespace content_settings { | |
| 13 | |
| 14 // This class manages the Plugins field trials. | 12 // This class manages the Plugins field trials. |
| 15 class PluginsFieldTrial { | 13 class PluginsFieldTrial { |
| 16 public: | 14 public: |
| 17 // Returns the effective content setting for plugins. Passes non-plugin | 15 // Returns the effective content setting for plugins. Passes non-plugin |
| 18 // content settings through without modification. | 16 // content settings through without modification. |
| 19 static ContentSetting EffectiveContentSetting(ContentSettingsType type, | 17 static ContentSetting EffectiveContentSetting(ContentSettingsType type, |
| 20 ContentSetting setting); | 18 ContentSetting setting); |
| 21 | 19 |
| 22 private: | 20 private: |
| 23 DISALLOW_IMPLICIT_CONSTRUCTORS(PluginsFieldTrial); | 21 DISALLOW_IMPLICIT_CONSTRUCTORS(PluginsFieldTrial); |
| 24 }; | 22 }; |
| 25 | 23 |
| 26 } // namespace content_settings | 24 #endif // CHROME_BROWSER_PLUGINS_PLUGINS_FIELD_TRIAL_H_ |
| 27 | |
| 28 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_H_ | |
| OLD | NEW |