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

Unified Diff: components/omnibox/omnibox_field_trial.h

Issue 905023003: Adding knobs on HQP provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing bart comments. PTAL. Created 5 years, 10 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/omnibox/omnibox_field_trial.h
diff --git a/components/omnibox/omnibox_field_trial.h b/components/omnibox/omnibox_field_trial.h
index 5a439e2f384a6dd62e2d1a5ceba56938d58b8325..fbc0bdde274714f1049738847c5699ebe7f9eddf 100644
--- a/components/omnibox/omnibox_field_trial.h
+++ b/components/omnibox/omnibox_field_trial.h
@@ -270,6 +270,20 @@ class OmniboxFieldTrial {
int* polling_delay_ms);
// ---------------------------------------------------------
+ // For HQP related experiments.
+ //
+ // Returns true if the HQP experimenal scoring is enabled.
+ static bool HQPExperimentalScoringEnabled();
+
+ // Returns the scoring buckets for HQP experiments. Returns empty string
+ // incase not initialized.
+ static std::string HQPExperimentalScoringBuckets();
+
+ // Returns the topicality threshold for HQP experiments. If it is not
+ // initialized return -1.
+ static float HQPExperimentalTopicalityThreshold();
+
+ // ---------------------------------------------------------
// Exposed publicly for the sake of unittests.
static const char kBundledExperimentFieldTrialName[];
// Rule names used by the bundled experiment.
@@ -298,6 +312,11 @@ class OmniboxFieldTrial {
static const char kHUPNewScoringVisitedCountHalfLifeTimeParam[];
static const char kHUPNewScoringVisitedCountScoreBucketsParam[];
+ // Parameter names used by the HQP scoring experiments.
+ static const char kHQPExperimentalScoringEnabledParam[];
+ static const char kHQPExperimentalScoringBucketsParam[];
+ static const char kHQPExperimentalScoringTopicalityThresholdParam[];
+
// The amount of time to wait before sending a new suggest request after the
// previous one unless overridden by a field trial parameter.
// Non-const because some unittests modify this value.

Powered by Google App Engine
This is Rietveld 408576698