| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 extern const base::Feature kNewOmniboxAnswerTypes; | 27 extern const base::Feature kNewOmniboxAnswerTypes; |
| 28 extern const base::Feature kOmniboxEntitySuggestions; | 28 extern const base::Feature kOmniboxEntitySuggestions; |
| 29 extern const base::Feature kOmniboxTailSuggestions; | 29 extern const base::Feature kOmniboxTailSuggestions; |
| 30 extern const base::Feature kEnableClipboardProvider; | 30 extern const base::Feature kEnableClipboardProvider; |
| 31 extern const base::Feature kSearchProviderWarmUpOnFocus; | 31 extern const base::Feature kSearchProviderWarmUpOnFocus; |
| 32 extern const base::Feature kSearchProviderContextAllowHttpsUrls; | 32 extern const base::Feature kSearchProviderContextAllowHttpsUrls; |
| 33 extern const base::Feature kZeroSuggestRedirectToChrome; | 33 extern const base::Feature kZeroSuggestRedirectToChrome; |
| 34 extern const base::Feature kZeroSuggestSwapTitleAndUrl; | 34 extern const base::Feature kZeroSuggestSwapTitleAndUrl; |
| 35 extern const base::Feature kDisplayTitleForCurrentUrl; | 35 extern const base::Feature kDisplayTitleForCurrentUrl; |
| 36 extern const base::Feature kUIExperimentHideSuggestionUrlPath; |
| 37 extern const base::Feature kUIExperimentHideSuggestionUrlProtocol; |
| 38 extern const base::Feature kUIExperimentHideSuggestionUrlSubdomain; |
| 36 extern const base::Feature kUIExperimentMaxAutocompleteMatches; | 39 extern const base::Feature kUIExperimentMaxAutocompleteMatches; |
| 37 extern const base::Feature kUIExperimentNarrowDropdown; | 40 extern const base::Feature kUIExperimentNarrowDropdown; |
| 38 extern const base::Feature kUIExperimentVerticalLayout; | 41 extern const base::Feature kUIExperimentVerticalLayout; |
| 39 extern const base::Feature kUIExperimentVerticalMargin; | 42 extern const base::Feature kUIExperimentVerticalMargin; |
| 40 } | 43 } |
| 41 | 44 |
| 42 // The set of parameters customizing the HUP scoring. | 45 // The set of parameters customizing the HUP scoring. |
| 43 struct HUPScoringParams { | 46 struct HUPScoringParams { |
| 44 // A set of parameters describing how to cap a given count score. First, | 47 // A set of parameters describing how to cap a given count score. First, |
| 45 // we apply a half-life based decay of the given count and then find the | 48 // we apply a half-life based decay of the given count and then find the |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 // prioritize different wildcard contexts, see the implementation. How to | 545 // prioritize different wildcard contexts, see the implementation. How to |
| 543 // interpret the value is left to the caller; this is rule-dependent. | 546 // interpret the value is left to the caller; this is rule-dependent. |
| 544 static std::string GetValueForRuleInContext( | 547 static std::string GetValueForRuleInContext( |
| 545 const std::string& rule, | 548 const std::string& rule, |
| 546 metrics::OmniboxEventProto::PageClassification page_classification); | 549 metrics::OmniboxEventProto::PageClassification page_classification); |
| 547 | 550 |
| 548 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); | 551 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); |
| 549 }; | 552 }; |
| 550 | 553 |
| 551 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ | 554 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ |
| OLD | NEW |