| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/gtest_prod_util.h" | |
| 14 #include "components/metrics/proto/omnibox_event.pb.h" | 13 #include "components/metrics/proto/omnibox_event.pb.h" |
| 15 #include "components/omnibox/browser/autocomplete_match_type.h" | 14 #include "components/omnibox/browser/autocomplete_match_type.h" |
| 16 | 15 |
| 17 namespace base { | 16 namespace base { |
| 18 class TimeDelta; | 17 class TimeDelta; |
| 19 } | 18 } |
| 20 | 19 |
| 21 // The set of parameters customizing the HUP scoring. | 20 // The set of parameters customizing the HUP scoring. |
| 22 struct HUPScoringParams { | 21 struct HUPScoringParams { |
| 23 // A set of parameters describing how to cap a given count score. First, | 22 // A set of parameters describing how to cap a given count score. First, |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // prioritize different wildcard contexts, see the implementation. How to | 382 // prioritize different wildcard contexts, see the implementation. How to |
| 384 // interpret the value is left to the caller; this is rule-dependent. | 383 // interpret the value is left to the caller; this is rule-dependent. |
| 385 static std::string GetValueForRuleInContext( | 384 static std::string GetValueForRuleInContext( |
| 386 const std::string& rule, | 385 const std::string& rule, |
| 387 metrics::OmniboxEventProto::PageClassification page_classification); | 386 metrics::OmniboxEventProto::PageClassification page_classification); |
| 388 | 387 |
| 389 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); | 388 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); |
| 390 }; | 389 }; |
| 391 | 390 |
| 392 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ | 391 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ |
| OLD | NEW |