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

Unified Diff: components/previews/previews_experiments.h

Issue 2179863003: Adding a new component, Previews. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macro change Created 4 years, 5 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/previews_experiments.h
diff --git a/components/previews/previews_experiments.h b/components/previews/previews_experiments.h
new file mode 100644
index 0000000000000000000000000000000000000000..04d2bbf150021696f2253b4797e90350a28d63ea
--- /dev/null
+++ b/components/previews/previews_experiments.h
@@ -0,0 +1,19 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_PREVIEWS_PREVIEWS_EXPERIMENTS_H_
+#define COMPONENTS_PREVIEWS_PREVIEWS_EXPERIMENTS_H_
+
+namespace previews {
+
+// Returns true if any client side previews experiment is active.
+bool IsIncludedInClientSidePreviewsExperimentsFieldTrial();
+
+// Returns true if the field trial that should enable offline pages for
+// prohibitvely slow networks is active.
+bool IsIncludedInOfflinePagesSlowConnectionFieldTrial();
+
+} // namespace previews
+
+#endif // COMPONENTS_PREVIEWS_PREVIEWS_EXPERIMENTS_H_

Powered by Google App Engine
This is Rietveld 408576698