Index: components/previews/core/previews_experiments.h |
diff --git a/components/previews/core/previews_experiments.h b/components/previews/core/previews_experiments.h |
index 258f436e27fcf903535548e730772d73312a7ebe..ca99cba26b343b253ff95eae7b6918108d7f1c07 100644 |
--- a/components/previews/core/previews_experiments.h |
+++ b/components/previews/core/previews_experiments.h |
@@ -1,23 +1,42 @@ |
// 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_CORE_PREVIEWS_EXPERIMENTS_H_ |
-#define COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_ |
+#ifndef COMPONENTS_PREVIEWS_PREVIEWS_EXPERIMENTS_H_ |
tbansal1
2016/09/19 21:26:08
s/COMPONENTS_PREVIEWS_PREVIEWS_EXPERIMENTS_H_/??/
RyanSturm
2016/09/19 22:37:45
Good catch. I've fixed others.
|
+#define COMPONENTS_PREVIEWS_PREVIEWS_EXPERIMENTS_H_ |
+ |
+#include "base/time/time.h" |
namespace previews { |
+namespace params { |
+ |
+// The maximum number of recent previews navigations the black list looks at to |
+// determine if a domain is blacklisted. |
+size_t MaxStoredHistoryLengthForBlackList(); |
+ |
+// The maximum number of hosts allowed in the in memory black list. |
+size_t MaxInMemoryHostsInBlackList(); |
+ |
+// The number of recent navigations that were opted out of that would trigger |
+// the domain to be blacklisted. |
+int BlackListOptOutThreshold(); |
+ |
+// The amount of time a domain remains blacklisted due to opt outs. |
+base::TimeDelta BlackListDuration(); |
+} |
+ |
// 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 IsOfflinePreviewsEnabled(); |
// Sets the appropriate state for field trial and variations to imitate the |
// offline pages field trial. |
bool EnableOfflinePreviewsForTesting(); |
} // namespace previews |
-#endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_ |
+#endif // COMPONENTS_PREVIEWS_PREVIEWS_EXPERIMENTS_H_ |