| 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 11 matching lines...) Expand all Loading... |
| 22 class TimeDelta; | 22 class TimeDelta; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace omnibox { | 25 namespace omnibox { |
| 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 kEnableClipboardProvider; | 29 extern const base::Feature kEnableClipboardProvider; |
| 30 extern const base::Feature kSearchProviderWarmUpOnFocus; | 30 extern const base::Feature kSearchProviderWarmUpOnFocus; |
| 31 extern const base::Feature kSearchProviderContextAllowHttpsUrls; | 31 extern const base::Feature kSearchProviderContextAllowHttpsUrls; |
| 32 extern const base::Feature kZeroSuggestRedirectToChrome; |
| 33 extern const base::Feature kZeroSuggestSwapTitleAndUrl; |
| 32 } | 34 } |
| 33 | 35 |
| 34 // The set of parameters customizing the HUP scoring. | 36 // The set of parameters customizing the HUP scoring. |
| 35 struct HUPScoringParams { | 37 struct HUPScoringParams { |
| 36 // A set of parameters describing how to cap a given count score. First, | 38 // A set of parameters describing how to cap a given count score. First, |
| 37 // we apply a half-life based decay of the given count and then find the | 39 // we apply a half-life based decay of the given count and then find the |
| 38 // maximum relevance score based on the decay factor or counts specified | 40 // maximum relevance score based on the decay factor or counts specified |
| 39 // in the corresponding bucket list. See comment on |buckets_| for details. | 41 // in the corresponding bucket list. See comment on |buckets_| for details. |
| 40 class ScoreBuckets { | 42 class ScoreBuckets { |
| 41 public: | 43 public: |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 // prioritize different wildcard contexts, see the implementation. How to | 508 // prioritize different wildcard contexts, see the implementation. How to |
| 507 // interpret the value is left to the caller; this is rule-dependent. | 509 // interpret the value is left to the caller; this is rule-dependent. |
| 508 static std::string GetValueForRuleInContext( | 510 static std::string GetValueForRuleInContext( |
| 509 const std::string& rule, | 511 const std::string& rule, |
| 510 metrics::OmniboxEventProto::PageClassification page_classification); | 512 metrics::OmniboxEventProto::PageClassification page_classification); |
| 511 | 513 |
| 512 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); | 514 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); |
| 513 }; | 515 }; |
| 514 | 516 |
| 515 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ | 517 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ |
| OLD | NEW |