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

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

Issue 2351443002: Omnibox - Launch Change to Correctly Classify Typed Visits (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | components/omnibox/browser/omnibox_field_trial.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_OMNIBOX_FIELD_TRIAL_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 // Returns the topicality threshold for HQP experiments. Returns -1 if 285 // Returns the topicality threshold for HQP experiments. Returns -1 if
286 // |kHQPExperimentalScoringTopicalityThresholdParam| or 286 // |kHQPExperimentalScoringTopicalityThresholdParam| or
287 // |kHQPExperimentalScoringEnabledParam| is not specified in the field trial. 287 // |kHQPExperimentalScoringEnabledParam| is not specified in the field trial.
288 static float HQPExperimentalTopicalityThreshold(); 288 static float HQPExperimentalTopicalityThreshold();
289 289
290 // --------------------------------------------------------- 290 // ---------------------------------------------------------
291 // For the HQPFixFrequencyScoring experiment that's part of the 291 // For the HQPFixFrequencyScoring experiment that's part of the
292 // bundled omnibox field trial. 292 // bundled omnibox field trial.
293 293
294 // Returns true if HQP should apply the bug fix for correctly identifying
295 // typed visits.
296 static bool HQPFixTypedVisitBug();
297
298 // Returns true if HQP should apply the bug fix to discount the visits to 294 // Returns true if HQP should apply the bug fix to discount the visits to
299 // pages visited less than ten times. 295 // pages visited less than ten times.
300 static bool HQPFixFewVisitsBug(); 296 static bool HQPFixFewVisitsBug();
301 297
302 // --------------------------------------------------------- 298 // ---------------------------------------------------------
303 // For the HQPNumTitleWords experiment that's part of the 299 // For the HQPNumTitleWords experiment that's part of the
304 // bundled omnibox field trial. 300 // bundled omnibox field trial.
305 301
306 // Returns the number of title words that are allowed to contribute 302 // Returns the number of title words that are allowed to contribute
307 // to the topicality score. Words later in the title are ignored. 303 // to the topicality score. Words later in the title are ignored.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 static const char kHQPBookmarkValueRule[]; 374 static const char kHQPBookmarkValueRule[];
379 static const char kHQPDiscountFrecencyWhenFewVisitsRule[]; 375 static const char kHQPDiscountFrecencyWhenFewVisitsRule[];
380 static const char kHQPAllowMatchInTLDRule[]; 376 static const char kHQPAllowMatchInTLDRule[];
381 static const char kHQPAllowMatchInSchemeRule[]; 377 static const char kHQPAllowMatchInSchemeRule[];
382 static const char kZeroSuggestRule[]; 378 static const char kZeroSuggestRule[];
383 static const char kZeroSuggestVariantRule[]; 379 static const char kZeroSuggestVariantRule[];
384 static const char kSuggestVariantRule[]; 380 static const char kSuggestVariantRule[];
385 static const char kDisableResultsCachingRule[]; 381 static const char kDisableResultsCachingRule[];
386 static const char kMeasureSuggestPollingDelayFromLastKeystrokeRule[]; 382 static const char kMeasureSuggestPollingDelayFromLastKeystrokeRule[];
387 static const char kSuggestPollingDelayMsRule[]; 383 static const char kSuggestPollingDelayMsRule[];
388 static const char kHQPFixTypedVisitBugRule[];
389 static const char kHQPFixFewVisitsBugRule[]; 384 static const char kHQPFixFewVisitsBugRule[];
390 static const char kHQPNumTitleWordsRule[]; 385 static const char kHQPNumTitleWordsRule[];
391 static const char kHQPAlsoDoHUPLikeScoringRule[]; 386 static const char kHQPAlsoDoHUPLikeScoringRule[];
392 static const char kHUPSearchDatabaseRule[]; 387 static const char kHUPSearchDatabaseRule[];
393 static const char kPreventUWYTDefaultForNonURLInputsRule[]; 388 static const char kPreventUWYTDefaultForNonURLInputsRule[];
394 static const char kKeywordRequiresRegistryRule[]; 389 static const char kKeywordRequiresRegistryRule[];
395 static const char kKeywordRequiresPrefixMatchRule[]; 390 static const char kKeywordRequiresPrefixMatchRule[];
396 static const char kKeywordScoreForSufficientlyCompleteMatchRule[]; 391 static const char kKeywordScoreForSufficientlyCompleteMatchRule[];
397 static const char kHQPAllowDupMatchesForScoringRule[]; 392 static const char kHQPAllowDupMatchesForScoringRule[];
398 static const char kEmphasizeTitlesRule[]; 393 static const char kEmphasizeTitlesRule[];
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 // prioritize different wildcard contexts, see the implementation. How to 432 // prioritize different wildcard contexts, see the implementation. How to
438 // interpret the value is left to the caller; this is rule-dependent. 433 // interpret the value is left to the caller; this is rule-dependent.
439 static std::string GetValueForRuleInContext( 434 static std::string GetValueForRuleInContext(
440 const std::string& rule, 435 const std::string& rule,
441 metrics::OmniboxEventProto::PageClassification page_classification); 436 metrics::OmniboxEventProto::PageClassification page_classification);
442 437
443 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 438 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
444 }; 439 };
445 440
446 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ 441 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « no previous file | components/omnibox/browser/omnibox_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698