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

Side by Side Diff: components/safe_browsing_db/safe_browsing_prefs.h

Issue 2418813002: [Reland] Refactoring of SBER preference usage (Closed)
Patch Set: Sync Created 4 years, 2 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
« no previous file with comments | « components/safe_browsing_db/DEPS ('k') | components/safe_browsing_db/safe_browsing_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // Safe Browsing preferences and some basic utility functions for using them.
6
7 #ifndef COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_
8 #define COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_
9
10 class PrefService;
11
12 namespace prefs {
13 extern const char kSafeBrowsingExtendedReportingEnabled[];
14 }
15
16 namespace safe_browsing {
17
18 // Returns the name of the Safe Browsing Extended Reporting pref that is
19 // currently in effect. The specific pref in-use may change through experiments.
20 const char* GetExtendedReportingPrefName();
21
22 // Returns whether Safe Browsing Extended Reporting is currently enabled.
23 // This should be used to decide if any of the reporting preferences are set,
24 // regardless of which specific one is set.
25 bool IsExtendedReportingEnabled(const PrefService& prefs);
26
27 // Updates UMA metrics about Safe Browsing Extended Reporting states.
28 void RecordExtendedReportingMetrics(const PrefService& prefs);
29
30 } // namespace safe_browsing
31
32 #endif // COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_
OLDNEW
« no previous file with comments | « components/safe_browsing_db/DEPS ('k') | components/safe_browsing_db/safe_browsing_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698