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

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

Issue 2721993002: Omnibox - Make Clipboard Provider Enabled via an Experimental Feature (Closed)
Patch Set: rebase Created 3 years, 9 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
11 #include <map> 11 #include <map>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "components/metrics/proto/omnibox_event.pb.h" 16 #include "components/metrics/proto/omnibox_event.pb.h"
17 #include "components/metrics/proto/omnibox_input_type.pb.h" 17 #include "components/metrics/proto/omnibox_input_type.pb.h"
18 #include "components/omnibox/browser/autocomplete_match_type.h" 18 #include "components/omnibox/browser/autocomplete_match_type.h"
19 19
20 namespace base { 20 namespace base {
21 struct Feature; 21 struct Feature;
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 29 extern const base::Feature kEnableClipboardProvider;
30 } 30 }
31 31
32 // The set of parameters customizing the HUP scoring. 32 // The set of parameters customizing the HUP scoring.
33 struct HUPScoringParams { 33 struct HUPScoringParams {
34 // A set of parameters describing how to cap a given count score. First, 34 // A set of parameters describing how to cap a given count score. First,
35 // we apply a half-life based decay of the given count and then find the 35 // we apply a half-life based decay of the given count and then find the
36 // maximum relevance score based on the decay factor or counts specified 36 // maximum relevance score based on the decay factor or counts specified
37 // in the corresponding bucket list. See comment on |buckets_| for details. 37 // in the corresponding bucket list. See comment on |buckets_| for details.
38 class ScoreBuckets { 38 class ScoreBuckets {
39 public: 39 public:
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // prioritize different wildcard contexts, see the implementation. How to 504 // prioritize different wildcard contexts, see the implementation. How to
505 // interpret the value is left to the caller; this is rule-dependent. 505 // interpret the value is left to the caller; this is rule-dependent.
506 static std::string GetValueForRuleInContext( 506 static std::string GetValueForRuleInContext(
507 const std::string& rule, 507 const std::string& rule,
508 metrics::OmniboxEventProto::PageClassification page_classification); 508 metrics::OmniboxEventProto::PageClassification page_classification);
509 509
510 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 510 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
511 }; 511 };
512 512
513 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ 513 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « components/omnibox/browser/omnibox_edit_unittest.cc ('k') | components/omnibox/browser/omnibox_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698