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

Side by Side Diff: components/omnibox/omnibox_field_trial.h

Issue 1009973005: Omnibox: Fix Scoring Bugs in URLs from History (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 5 #ifndef COMPONENTS_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
6 #define COMPONENTS_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 6 #define COMPONENTS_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // Please see GetRelevancyScore() under 285 // Please see GetRelevancyScore() under
286 // chrome/browser/history::ScoredHistoryMatch for details. 286 // chrome/browser/history::ScoredHistoryMatch for details.
287 static std::string HQPExperimentalScoringBuckets(); 287 static std::string HQPExperimentalScoringBuckets();
288 288
289 // Returns the topicality threshold for HQP experiments. Returns -1 if 289 // Returns the topicality threshold for HQP experiments. Returns -1 if
290 // |kHQPExperimentalScoringTopicalityThresholdParam| or 290 // |kHQPExperimentalScoringTopicalityThresholdParam| or
291 // |kHQPExperimentalScoringEnabledParam| is not specified in the field trial. 291 // |kHQPExperimentalScoringEnabledParam| is not specified in the field trial.
292 static float HQPExperimentalTopicalityThreshold(); 292 static float HQPExperimentalTopicalityThreshold();
293 293
294 // --------------------------------------------------------- 294 // ---------------------------------------------------------
295 // For the HQPFixFrequencyScoring experiment that's part of the
296 // bundled omnibox field trial.
297
298 // Returns true if HQP should apply the bug fixes to the GetFrequency()
299 // function.
300 static bool HQPFixFrequencyScoringBugs();
301
302 // ---------------------------------------------------------
295 // Exposed publicly for the sake of unittests. 303 // Exposed publicly for the sake of unittests.
296 static const char kBundledExperimentFieldTrialName[]; 304 static const char kBundledExperimentFieldTrialName[];
297 // Rule names used by the bundled experiment. 305 // Rule names used by the bundled experiment.
298 static const char kDisableProvidersRule[]; 306 static const char kDisableProvidersRule[];
299 static const char kShortcutsScoringMaxRelevanceRule[]; 307 static const char kShortcutsScoringMaxRelevanceRule[];
300 static const char kSearchHistoryRule[]; 308 static const char kSearchHistoryRule[];
301 static const char kDemoteByTypeRule[]; 309 static const char kDemoteByTypeRule[];
302 static const char kHQPBookmarkValueRule[]; 310 static const char kHQPBookmarkValueRule[];
303 static const char kHQPDiscountFrecencyWhenFewVisitsRule[]; 311 static const char kHQPDiscountFrecencyWhenFewVisitsRule[];
304 static const char kHQPAllowMatchInTLDRule[]; 312 static const char kHQPAllowMatchInTLDRule[];
305 static const char kHQPAllowMatchInSchemeRule[]; 313 static const char kHQPAllowMatchInSchemeRule[];
306 static const char kZeroSuggestRule[]; 314 static const char kZeroSuggestRule[];
307 static const char kZeroSuggestVariantRule[]; 315 static const char kZeroSuggestVariantRule[];
308 static const char kAnswersInSuggestRule[]; 316 static const char kAnswersInSuggestRule[];
309 static const char kDisplayHintTextWhenPossibleRule[]; 317 static const char kDisplayHintTextWhenPossibleRule[];
310 static const char kDisableResultsCachingRule[]; 318 static const char kDisableResultsCachingRule[];
311 static const char kMeasureSuggestPollingDelayFromLastKeystrokeRule[]; 319 static const char kMeasureSuggestPollingDelayFromLastKeystrokeRule[];
312 static const char kSuggestPollingDelayMsRule[]; 320 static const char kSuggestPollingDelayMsRule[];
321 static const char kHQPFixFrequencyScoringBugsRule[];
313 322
314 // Parameter names used by the HUP new scoring experiments. 323 // Parameter names used by the HUP new scoring experiments.
315 static const char kHUPNewScoringEnabledParam[]; 324 static const char kHUPNewScoringEnabledParam[];
316 static const char kHUPNewScoringTypedCountRelevanceCapParam[]; 325 static const char kHUPNewScoringTypedCountRelevanceCapParam[];
317 static const char kHUPNewScoringTypedCountHalfLifeTimeParam[]; 326 static const char kHUPNewScoringTypedCountHalfLifeTimeParam[];
318 static const char kHUPNewScoringTypedCountScoreBucketsParam[]; 327 static const char kHUPNewScoringTypedCountScoreBucketsParam[];
319 static const char kHUPNewScoringVisitedCountRelevanceCapParam[]; 328 static const char kHUPNewScoringVisitedCountRelevanceCapParam[];
320 static const char kHUPNewScoringVisitedCountHalfLifeTimeParam[]; 329 static const char kHUPNewScoringVisitedCountHalfLifeTimeParam[];
321 static const char kHUPNewScoringVisitedCountScoreBucketsParam[]; 330 static const char kHUPNewScoringVisitedCountScoreBucketsParam[];
322 331
(...skipping 26 matching lines...) Expand all
349 // prioritize different wildcard contexts, see the implementation. How to 358 // prioritize different wildcard contexts, see the implementation. How to
350 // interpret the value is left to the caller; this is rule-dependent. 359 // interpret the value is left to the caller; this is rule-dependent.
351 static std::string GetValueForRuleInContext( 360 static std::string GetValueForRuleInContext(
352 const std::string& rule, 361 const std::string& rule,
353 metrics::OmniboxEventProto::PageClassification page_classification); 362 metrics::OmniboxEventProto::PageClassification page_classification);
354 363
355 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 364 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
356 }; 365 };
357 366
358 #endif // COMPONENTS_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 367 #endif // COMPONENTS_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/scored_history_match.cc ('k') | components/omnibox/omnibox_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698