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

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

Issue 377153004: Componentize autocomplete_match_type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 5 #ifndef CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 6 #define CHROME_BROWSER_OMNIBOX_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" 13 #include "base/gtest_prod_util.h"
14 #include "chrome/common/autocomplete_match_type.h" 14 #include "components/autocomplete/autocomplete_match_type.h"
15 #include "components/metrics/proto/omnibox_event.pb.h" 15 #include "components/metrics/proto/omnibox_event.pb.h"
16 16
17 namespace base { 17 namespace base {
18 class TimeDelta; 18 class TimeDelta;
19 } 19 }
20 20
21 // The set of parameters customizing the HUP scoring. 21 // The set of parameters customizing the HUP scoring.
22 struct HUPScoringParams { 22 struct HUPScoringParams {
23 // A set of parameters describing how to cap a given count score. First, 23 // A set of parameters describing how to cap a given count score. First,
24 // we apply a half-life based decay of the given count and then find the 24 // we apply a half-life based decay of the given count and then find the
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // prioritize different wildcard contexts, see the implementation. How to 355 // prioritize different wildcard contexts, see the implementation. How to
356 // interpret the value is left to the caller; this is rule-dependent. 356 // interpret the value is left to the caller; this is rule-dependent.
357 static std::string GetValueForRuleInContext( 357 static std::string GetValueForRuleInContext(
358 const std::string& rule, 358 const std::string& rule,
359 metrics::OmniboxEventProto::PageClassification page_classification); 359 metrics::OmniboxEventProto::PageClassification page_classification);
360 360
361 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 361 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
362 }; 362 };
363 363
364 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 364 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/shortcuts_database_unittest.cc ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698