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

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

Issue 2739033005: Moving previews code from components/ to chrome/ (Closed)
Patch Set: tbansal comments Created 3 years, 9 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
« no previous file with comments | « chrome/browser/previews/previews_service.cc ('k') | components/previews/core/previews_experiments.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/previews/core/previews_experiments.h
diff --git a/components/previews/core/previews_experiments.h b/components/previews/core/previews_experiments.h
index 0a6f3a6f9a3864cbd5ea96a830600fd63d222f56..a41f02fef613e95581ef9e4840a58c0c0ada3971 100644
--- a/components/previews/core/previews_experiments.h
+++ b/components/previews/core/previews_experiments.h
@@ -52,10 +52,17 @@ base::TimeDelta OfflinePreviewFreshnessDuration();
// served.
net::EffectiveConnectionType EffectiveConnectionTypeThreshold();
+// Whether offline previews are enabled.
+bool IsOfflinePreviewsEnabled();
+
+// The blacklist version for offline previews.
+int OfflinePreviewsVersion();
+
} // namespace params
enum class PreviewsType {
NONE = 0,
+ // The user is shown an offline page as a preview.
OFFLINE = 1,
// Insert new enum values here. Keep values sequential to allow looping
// from NONE+1 to LAST-1.
@@ -67,17 +74,6 @@ typedef std::vector<std::pair<PreviewsType, int>> PreviewsTypeList;
// 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);
-
-// Returns the version of preview treatment |type|. Defaults to 0 if not
-// specified in field trial config.
-int GetPreviewsTypeVersion(PreviewsType type);
-
-// Returns the enabled PreviewsTypes with their version.
-std::unique_ptr<PreviewsTypeList> GetEnabledPreviews();
-
// Sets the appropriate state for field trial and variations to imitate the
// offline pages field trial.
bool EnableOfflinePreviewsForTesting();
« no previous file with comments | « chrome/browser/previews/previews_service.cc ('k') | components/previews/core/previews_experiments.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698