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

Unified Diff: chrome/browser/plugins/plugins_field_trial.h

Issue 2285553002: [HBD] Gate the advertising of Flash on Site Engagement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/plugins/plugins_field_trial.h
diff --git a/chrome/browser/plugins/plugins_field_trial.h b/chrome/browser/plugins/plugins_field_trial.h
index ba106604dbd757ba8db9f98c4720d7ac83909b81..71da9e3122465a912dd919ac7509c78168cd8ccf 100644
--- a/chrome/browser/plugins/plugins_field_trial.h
+++ b/chrome/browser/plugins/plugins_field_trial.h
@@ -9,14 +9,24 @@
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
+class GURL;
+class HostContentSettingsMap;
+
// This class manages the Plugins field trials.
class PluginsFieldTrial {
public:
+ // The name of the variations parameter used for updating the amount of site
+ // engagement required to permit Flash.
+ static const char* kSiteEngagementThresholdForFlashKey;
+
// Returns the effective content setting for plugins. Passes non-plugin
// content settings through without modification.
static ContentSetting EffectiveContentSetting(ContentSettingsType type,
ContentSetting setting);
+ // Returns the engagement cutoff for permitting Flash to run without a prompt.
+ static double GetSiteEngagementThresholdForFlash();
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PluginsFieldTrial);
};
« no previous file with comments | « chrome/browser/plugins/chrome_plugin_service_filter_unittest.cc ('k') | chrome/browser/plugins/plugins_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698