diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-12 22:16:09 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-12 22:16:09 +0000 |
commit | 12ec79f1936d9eedc2c6691ef73bbc3ca7b4bc4a (patch) | |
tree | 813d09a37caecb6c80a4ba3019b77c8646b43f91 /chrome/browser/autocomplete/autocomplete.h | |
parent | a0edd606ddead87a3330244156302445d0b83012 (diff) | |
download | chromium_src-12ec79f1936d9eedc2c6691ef73bbc3ca7b4bc4a.zip chromium_src-12ec79f1936d9eedc2c6691ef73bbc3ca7b4bc4a.tar.gz chromium_src-12ec79f1936d9eedc2c6691ef73bbc3ca7b4bc4a.tar.bz2 |
Omnibox metrics logging patch splitout, part 5: Add TypeToString() helpers. One of these is unused for the moment.
Review URL: http://codereview.chromium.org/10657
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete.h b/chrome/browser/autocomplete/autocomplete.h index ad4c138..1c94cf9 100644 --- a/chrome/browser/autocomplete/autocomplete.h +++ b/chrome/browser/autocomplete/autocomplete.h @@ -162,6 +162,9 @@ class AutocompleteInput { bool prefer_keyword, bool synchronous_only); + // Converts |type| to a string representation. Used in logging. + static std::string TypeToString(Type type); + // Parses |text| and returns the type of input this will be interpreted as. // The components of the input are stored in the output parameter |parts|. static Type Parse(const std::wstring& text, @@ -301,6 +304,9 @@ struct AutocompleteMatch { int relevance, bool deletable); + // Converts |type| to a string representation. Used in logging. + static std::string TypeToString(Type type); + // Comparison function for determining when one match is better than another. static bool MoreRelevant(const AutocompleteMatch& elem1, const AutocompleteMatch& elem2); |