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

Side by Side Diff: chrome/browser/plugins/plugins_field_trial.h

Issue 2264583003: [HBD] Map ASK to DETECT_IMPORTANT_CONTENT when PreferHtmlOverPlugins is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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_
OLDNEW
« 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