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

Unified Diff: components/omnibox/autocomplete_match.h

Issue 669573005: Add a class to parse answer json. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix case on "copyright" Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/omnibox/BUILD.gn ('k') | components/omnibox/autocomplete_match.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/autocomplete_match.h
diff --git a/components/omnibox/autocomplete_match.h b/components/omnibox/autocomplete_match.h
index cb1f6e4258f80a00e0c0b861ca15e0ecfdeef475..93c509741c901163ee66bb30ca67af3ae61c4194 100644
--- a/components/omnibox/autocomplete_match.h
+++ b/components/omnibox/autocomplete_match.h
@@ -16,6 +16,7 @@
#include "url/gurl.h"
class AutocompleteProvider;
+class SuggestionAnswer;
class TemplateURL;
class TemplateURLService;
@@ -317,9 +318,12 @@ struct AutocompleteMatch {
base::string16 description;
ACMatchClassifications description_class;
+ // TODO(jdonnelly): Remove the first two properties once the downstream
+ // clients are using the SuggestionAnswer.
// A rich-format version of the display for the dropdown.
base::string16 answer_contents;
base::string16 answer_type;
+ scoped_ptr<SuggestionAnswer> answer;
// The transition type to use when the user opens this match. By default
// this is TYPED. Providers whose matches do not look like URLs should set
« no previous file with comments | « components/omnibox/BUILD.gn ('k') | components/omnibox/autocomplete_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698