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

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

Issue 2640023007: Adds PreviewsType version mechanism for clearing blacklist entries. (Closed)
Patch Set: Missed a change in last upload Created 3 years, 11 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 021db0a8de82139b99aa0c1b4b0c9159d582dde5..5ba776f68f30754ebc2f7f176b32b9511af94cf4 100644
--- a/components/previews/core/previews_experiments.h
+++ b/components/previews/core/previews_experiments.h
@@ -5,6 +5,10 @@
#ifndef COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_
#define COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_
+#include <memory>
+#include <utility>
+#include <vector>
+
#include "base/time/time.h"
namespace previews {
@@ -58,6 +62,13 @@ bool IsIncludedInClientSidePreviewsExperimentsFieldTrial();
// prohibitvely slow networks is active.
bool IsPreviewsTypeEnabled(PreviewsType type);
+// Returns the version of preview treatment |type| to use if it is enabled.
+// Should only be called if |IsPreviewsTypeEnabled(type)| returns true.
+bool IsPreviewsTypeEnabled(PreviewsType type);
+
+// Returns the enabled PreviewsTypes with their version.
+std::unique_ptr<std::vector<std::pair<PreviewsType, int>>> GetEnabledPreviews();
+
// Sets the appropriate state for field trial and variations to imitate the
// offline pages field trial.
bool EnableOfflinePreviewsForTesting();
« no previous file with comments | « no previous file | components/previews/core/previews_experiments.cc » ('j') | components/previews/core/previews_experiments.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698