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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 CHROME_BROWSER_PLUGINS_PLUGINS_FIELD_TRIAL_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGINS_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGINS_FIELD_TRIAL_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 class GURL;
13 class HostContentSettingsMap; 12 class HostContentSettingsMap;
14 13
15 // This class manages the Plugins field trials. 14 // This class manages the Plugins field trials.
16 class PluginsFieldTrial { 15 class PluginsFieldTrial {
17 public: 16 public:
18 // The name of the variations parameter used for updating the amount of site 17 // The name of the variations parameter used for updating the amount of site
19 // engagement required to permit Flash. 18 // engagement required to permit Flash.
20 static const char* kSiteEngagementThresholdForFlashKey; 19 static const char* kSiteEngagementThresholdForFlashKey;
21 20
22 // Returns the effective content setting for plugins. Passes non-plugin 21 // Returns the effective content setting for plugins. Passes non-plugin
23 // content settings through without modification. 22 // content settings through without modification.
24 static ContentSetting EffectiveContentSetting( 23 static ContentSetting EffectiveContentSetting(
25 const HostContentSettingsMap* host_content_settings_map, 24 const HostContentSettingsMap* host_content_settings_map,
26 ContentSettingsType type, 25 ContentSettingsType type,
27 ContentSetting setting); 26 ContentSetting setting);
28 27
29 // Returns the engagement cutoff for permitting Flash to run without a prompt. 28 // Returns the engagement cutoff for permitting Flash to run without a prompt.
30 static double GetSiteEngagementThresholdForFlash(); 29 static double GetSiteEngagementThresholdForFlash();
31 30
32 private: 31 private:
33 DISALLOW_IMPLICIT_CONSTRUCTORS(PluginsFieldTrial); 32 DISALLOW_IMPLICIT_CONSTRUCTORS(PluginsFieldTrial);
34 }; 33 };
35 34
36 #endif // CHROME_BROWSER_PLUGINS_PLUGINS_FIELD_TRIAL_H_ 35 #endif // CHROME_BROWSER_PLUGINS_PLUGINS_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_observer.h ('k') | chrome/browser/policy/profile_policy_connector_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698