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

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

Issue 2864103003: Limit the number of history urls indexed for omnibox suggestions. (Closed)
Patch Set: Fixes. Created 3 years, 7 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_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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 399
400 // Returns the base relevance score for Physical Web omnibox suggestions when 400 // Returns the base relevance score for Physical Web omnibox suggestions when
401 // the user has clicked on the omnibox but has not typed anything yet. 401 // the user has clicked on the omnibox but has not typed anything yet.
402 static int GetPhysicalWebZeroSuggestBaseRelevance(); 402 static int GetPhysicalWebZeroSuggestBaseRelevance();
403 403
404 // Returns the base relevance score for Physical Web omnibox suggestions when 404 // Returns the base relevance score for Physical Web omnibox suggestions when
405 // the user has started typing in the omnibox. 405 // the user has started typing in the omnibox.
406 static int GetPhysicalWebAfterTypingBaseRelevance(); 406 static int GetPhysicalWebAfterTypingBaseRelevance();
407 407
408 // --------------------------------------------------------- 408 // ---------------------------------------------------------
409 // For experitment to limit url indexing that's part of the bundled omnibox
410 // field trial.
411
412 // Returns the maximum number of history urls to index at the startup. Note:
Mark P 2017/05/08 22:39:17 There are multiple history systems. You're only l
ssid 2017/05/10 01:01:35 Ah sorry. I coulnd't find what hqp means from the
Mark P 2017/05/10 17:23:09 Yeah, I agree the names are confusing. The basic
ssid 2017/05/10 19:47:57 Acknowledged.
413 // this limit is only applied at startup and more urls can be indexed during
414 // the session. Returns -1 if limit is not set by trials.
415 static int MaxNumHistoryUrlsIndexedAtStartup();
416
417 // ---------------------------------------------------------
409 // For experiment redirecting zero suggest requests to a service provided by 418 // For experiment redirecting zero suggest requests to a service provided by
410 // the Chrome team. 419 // the Chrome team.
411 420
412 // Returns true whether the user is in the field trial which redirects zero 421 // Returns true whether the user is in the field trial which redirects zero
413 // suggest requests to the service provided by the Chrome team. 422 // suggest requests to the service provided by the Chrome team.
414 static bool InZeroSuggestRedirectToChromeFieldTrial(); 423 static bool InZeroSuggestRedirectToChromeFieldTrial();
415 424
416 // Returns a string representing the address of the server where the zero 425 // Returns a string representing the address of the server where the zero
417 // suggest requests are being redirected. The return value is a URL 426 // suggest requests are being redirected. The return value is a URL
418 // (https://example.com/test) and it doesn't include any query component 427 // (https://example.com/test) and it doesn't include any query component
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 static const char kHUPNewScoringVisitedCountUseDecayFactorParam[]; 491 static const char kHUPNewScoringVisitedCountUseDecayFactorParam[];
483 492
484 // Parameter names used by the HQP experimental scoring experiments. 493 // Parameter names used by the HQP experimental scoring experiments.
485 static const char kHQPExperimentalScoringBucketsParam[]; 494 static const char kHQPExperimentalScoringBucketsParam[];
486 static const char kHQPExperimentalScoringTopicalityThresholdParam[]; 495 static const char kHQPExperimentalScoringTopicalityThresholdParam[];
487 496
488 // Parameter names used by the Physical Web experimental scoring experiments. 497 // Parameter names used by the Physical Web experimental scoring experiments.
489 static const char kPhysicalWebZeroSuggestBaseRelevanceParam[]; 498 static const char kPhysicalWebZeroSuggestBaseRelevanceParam[];
490 static const char kPhysicalWebAfterTypingBaseRelevanceParam[]; 499 static const char kPhysicalWebAfterTypingBaseRelevanceParam[];
491 500
501 // Parameter name used by the experiment that limits the number of history
502 // urls indexed for suggestions.
503 static const char kMaxNumHistoryUrlsIndexedAtStartupParam[];
504
492 // Parameter names used by the experiment redirecting Zero Suggestion requests 505 // Parameter names used by the experiment redirecting Zero Suggestion requests
493 // to a service provided by the Chrome team. 506 // to a service provided by the Chrome team.
494 static const char kZeroSuggestRedirectToChromeServerAddressParam[]; 507 static const char kZeroSuggestRedirectToChromeServerAddressParam[];
495 static const char kZeroSuggestRedirectToChromeAdditionalFieldsParam[]; 508 static const char kZeroSuggestRedirectToChromeAdditionalFieldsParam[];
496 509
497 // The amount of time to wait before sending a new suggest request after the 510 // The amount of time to wait before sending a new suggest request after the
498 // previous one unless overridden by a field trial parameter. 511 // previous one unless overridden by a field trial parameter.
499 // Non-const because some unittests modify this value. 512 // Non-const because some unittests modify this value.
500 static int kDefaultMinimumTimeBetweenSuggestQueriesMs; 513 static int kDefaultMinimumTimeBetweenSuggestQueriesMs;
501 514
(...skipping 16 matching lines...) Expand all
518 // prioritize different wildcard contexts, see the implementation. How to 531 // prioritize different wildcard contexts, see the implementation. How to
519 // interpret the value is left to the caller; this is rule-dependent. 532 // interpret the value is left to the caller; this is rule-dependent.
520 static std::string GetValueForRuleInContext( 533 static std::string GetValueForRuleInContext(
521 const std::string& rule, 534 const std::string& rule,
522 metrics::OmniboxEventProto::PageClassification page_classification); 535 metrics::OmniboxEventProto::PageClassification page_classification);
523 536
524 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 537 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
525 }; 538 };
526 539
527 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ 540 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698