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

Unified Diff: components/previews/core/previews_experiments.h

Issue 2448313002: Adding unit tests for PreviewsOptOutStoreSQL (Closed)
Patch Set: ios issue 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 side-by-side diff with in-line comments
Download patch
Index: components/previews/core/previews_experiments.h
diff --git a/components/previews/core/previews_experiments.h b/components/previews/core/previews_experiments.h
index 520b45fb65b6cd678159521bb8364288215eab80..c27afe9d42ce4eacfd79a5e21140eb8a44fbe1cd 100644
--- a/components/previews/core/previews_experiments.h
+++ b/components/previews/core/previews_experiments.h
@@ -26,20 +26,28 @@ int BlackListOptOutThreshold();
base::TimeDelta BlackListDuration();
} // namespace params
enum class PreviewsType {
NONE = 0,
OFFLINE = 1,
LAST = 2,
};
+// Returns the maximum number of table rows allowed per host for the previews
+// opt out store.
+int MaxRowsPerHostInOptOutDB();
+
+// Returns the maximum number of table rows allowed for the previews opt out
+// store.
+int MaxRowsInOptOutDB();
+
// Returns true if any client-side previews experiment is active.
bool IsIncludedInClientSidePreviewsExperimentsFieldTrial();
// Returns true if the field trial that should enable previews for |type| for
// prohibitvely slow networks is active.
bool IsPreviewsTypeEnabled(PreviewsType type);
// Sets the appropriate state for field trial and variations to imitate the
// offline pages field trial.
bool EnableOfflinePreviewsForTesting();

Powered by Google App Engine
This is Rietveld 408576698