summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_match.h
diff options
context:
space:
mode:
authordominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-11 20:44:29 +0000
committerdominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-11 20:44:29 +0000
commit71937b9cc348ba9c34971e983ad9fc4fe687ca0e (patch)
tree1d46a89528149e115b59d0bb57571e9ecd8ddd6c /chrome/browser/autocomplete/autocomplete_match.h
parent486015170893e58575428f593d310ca2110d8699 (diff)
downloadchromium_src-71937b9cc348ba9c34971e983ad9fc4fe687ca0e.zip
chromium_src-71937b9cc348ba9c34971e983ad9fc4fe687ca0e.tar.gz
chromium_src-71937b9cc348ba9c34971e983ad9fc4fe687ca0e.tar.bz2
Add confidence to AutocompleteMatch.
Calculated by each provider using whatever measure makes sense and stored as a float in the range [0, 1]. Will be used for determining benefit of using instant, prerender, DNS preconnect to increase success rate and avoid wasted resources. Currently fed into UMA to validate experiment. BUG=None TEST=None Review URL: http://codereview.chromium.org/7607007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_match.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_match.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_match.h b/chrome/browser/autocomplete/autocomplete_match.h
index fbf8355..6fbb780 100644
--- a/chrome/browser/autocomplete/autocomplete_match.h
+++ b/chrome/browser/autocomplete/autocomplete_match.h
@@ -85,6 +85,7 @@ struct AutocompleteMatch {
AutocompleteMatch();
AutocompleteMatch(AutocompleteProvider* provider,
int relevance,
+ float confidence,
bool deletable,
Type type);
~AutocompleteMatch();
@@ -139,6 +140,10 @@ struct AutocompleteMatch {
// rather than being a fairly fixed value defined by the table above.
int relevance;
+ // The confidence of the match. Calculated per provider and a measure in the
+ // range [0, 1].
+ float confidence;
+
// True if the user should be able to delete this match.
bool deletable;