DescriptionPart 6 of search provider refactoring.
Makes changes to how the state is recorded in zero_suggest_provider
to facilitate moving out ParseSuggestResults into super class.
Replaces navigation_results_, query_matches_map_, and
verbatim_relevance_ objects with a Results results_ instance. The latter
keeps track of navigation_results_ and query_results_ and constructs
the query matches map on when it's needed.
verbatim_relevance_ in the old code is only used to see the current url
match (based on the server relevance returned in the previous request
or a static value). The new code keeps track of the server verbatim
relevance in results_ and uses an accessor to get either server results
or a constant value if no server results are available, matching the
old semantics.
Merged FillResults with ParseSuggestResults function and moved match
map creation code into ConvertResultsToAutocompleteMatches where it's
used.
BUG=338955
TBR=mpearson
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252206
Patch Set 1 #Patch Set 2 : Fixes up comments #
Total comments: 1
Patch Set 3 : Made GetVerbatimRelevance const #
Total comments: 7
Patch Set 4 : Update comment on ClearAllResults #
Messages
Total messages: 13 (0 generated)
|