Chromium Code Reviews| Index: chrome/browser/autocomplete/autocomplete_match.h |
| =================================================================== |
| --- chrome/browser/autocomplete/autocomplete_match.h (revision 145893) |
| +++ chrome/browser/autocomplete/autocomplete_match.h (working copy) |
| @@ -6,6 +6,7 @@ |
| #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| #pragma once |
| +#include <map> |
| #include <string> |
| #include <vector> |
| @@ -18,6 +19,10 @@ |
| class Profile; |
| class TemplateURL; |
| +namespace base { |
| +class Time; |
| +} // namespace base |
| + |
| // AutocompleteMatch ---------------------------------------------------------- |
| // A single result line with classified spans. The autocomplete popup displays |
| @@ -190,6 +195,11 @@ |
| // TemplateURL. See comments on |keyword| below. |
| TemplateURL* GetTemplateURL(Profile* profile) const; |
| + // Adds diagnostic information to the |diagnostics| dictionary. |
| + void RecordDiagnostic(const std::string& property, const std::string& value); |
| + void RecordDiagnostic(const std::string& property, int value); |
| + void RecordDiagnostic(const std::string& property, const base::Time& value); |
| + |
| // The provider of this match, used to remember which provider the user had |
| // selected when the input changes. This may be NULL, in which case there is |
| // no provider (or memory of the user's selection). |
| @@ -284,6 +294,10 @@ |
| // AutocompleteController to do no additional transformations. |
| scoped_ptr<TemplateURLRef::SearchTermsArgs> search_terms_args; |
| + // Diagnostic information dictionary into which each provider can optionally |
| + // record a property and associated value. |
|
Mark P
2012/07/10 19:41:12
Consider adding:
Used for chrome://omnibox
mrossetti
2012/07/14 02:34:06
Done.
|
| + std::map<std::string, std::string> diagnostics; |
| + |
| #ifndef NDEBUG |
| // Does a data integrity check on this match. |
| void Validate() const; |