diff options
Diffstat (limited to 'chromium/components/safe_browsing/core/common/safe_browsing_prefs.h')
-rw-r--r-- | chromium/components/safe_browsing/core/common/safe_browsing_prefs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium/components/safe_browsing/core/common/safe_browsing_prefs.h b/chromium/components/safe_browsing/core/common/safe_browsing_prefs.h index 05136ba29e4..c32c617df1d 100644 --- a/chromium/components/safe_browsing/core/common/safe_browsing_prefs.h +++ b/chromium/components/safe_browsing/core/common/safe_browsing_prefs.h @@ -18,6 +18,10 @@ class PrefRegistrySimple; class PrefService; class GURL; +namespace base { +class Time; +} + namespace prefs { // A list of times at which CSD pings were sent. extern const char kSafeBrowsingCsdPingTimestamps[]; @@ -123,6 +127,10 @@ extern const char kAccountTailoredSecurityShownNotification[]; // account tailored security. extern const char kEnhancedProtectionEnabledViaTailoredSecurity[]; +// The last time the Extension Telemetry Service successfully +// uploaded its data. +extern const char kExtensionTelemetryLastUploadTime[]; + } // namespace prefs namespace safe_browsing { @@ -251,6 +259,14 @@ void SetExtendedReportingPrefAndMetric(PrefService* prefs, // This variant is used to simplify test code by omitting the location. void SetExtendedReportingPrefForTests(PrefService* prefs, bool value); +// Sets the last time the Extension Telemetry Service successfully uploaded +// its data. +void SetLastUploadTimeForExtensionTelemetry(PrefService& prefs, + const base::Time& time); + +// Returns the `kExtensionTelemetryLastUploadTime` user preference. +base::Time GetLastUploadTimeForExtensionTelemetry(PrefService& prefs); + // Sets the currently active Safe Browsing Enhanced Protection to the specified // value. void SetEnhancedProtectionPrefForTests(PrefService* prefs, bool value); |