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

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

Issue 2738003002: Add title to current page in zero suggest. (Closed)
Patch Set: Remove debugging info. 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 13 matching lines...) Expand all
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; 32 extern const base::Feature kZeroSuggestRedirectToChrome;
33 extern const base::Feature kZeroSuggestSwapTitleAndUrl; 33 extern const base::Feature kZeroSuggestSwapTitleAndUrl;
34 extern const base::Feature kDisplayTitleForCurrentUrl;
34 } 35 }
35 36
36 // The set of parameters customizing the HUP scoring. 37 // The set of parameters customizing the HUP scoring.
37 struct HUPScoringParams { 38 struct HUPScoringParams {
38 // A set of parameters describing how to cap a given count score. First, 39 // A set of parameters describing how to cap a given count score. First,
39 // we apply a half-life based decay of the given count and then find the 40 // we apply a half-life based decay of the given count and then find the
40 // maximum relevance score based on the decay factor or counts specified 41 // maximum relevance score based on the decay factor or counts specified
41 // in the corresponding bucket list. See comment on |buckets_| for details. 42 // in the corresponding bucket list. See comment on |buckets_| for details.
42 class ScoreBuckets { 43 class ScoreBuckets {
43 public: 44 public:
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // prioritize different wildcard contexts, see the implementation. How to 519 // prioritize different wildcard contexts, see the implementation. How to
519 // interpret the value is left to the caller; this is rule-dependent. 520 // interpret the value is left to the caller; this is rule-dependent.
520 static std::string GetValueForRuleInContext( 521 static std::string GetValueForRuleInContext(
521 const std::string& rule, 522 const std::string& rule,
522 metrics::OmniboxEventProto::PageClassification page_classification); 523 metrics::OmniboxEventProto::PageClassification page_classification);
523 524
524 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 525 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
525 }; 526 };
526 527
527 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ 528 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « components/omnibox/browser/omnibox_edit_model.cc ('k') | components/omnibox/browser/omnibox_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698