Chromium Code Reviews| Index: chrome/browser/autocomplete/autocomplete.h |
| diff --git a/chrome/browser/autocomplete/autocomplete.h b/chrome/browser/autocomplete/autocomplete.h |
| index eaf23184e880536dd66523d309839bf996b93014..ee73d692f52a2acae2e83a714c0be39391f7ce70 100644 |
| --- a/chrome/browser/autocomplete/autocomplete.h |
| +++ b/chrome/browser/autocomplete/autocomplete.h |
| @@ -402,6 +402,16 @@ class AutocompleteProvider |
| // NOTE: Remember to call OnProviderUpdate() if matches_ is updated. |
| virtual void DeleteMatch(const AutocompleteMatch& match); |
| + // Invoked after combining the results from all providers (including sorting, |
| + // culling and all that) but before the AutocompleteController's delegate is |
| + // notified. This is exposed to allow providers to alter the descriptions of |
| + // matches based on position in the final result set. Providers should not use |
| + // this to add new matches. |
| + virtual void PostProcessResult(AutocompleteResult* result); |
| + |
| +#ifdef UNIT_TEST |
|
Peter Kasting
2011/07/07 01:16:07
Nit: Maybe this should go between Stop() and match
|
| + void set_listener(ACProviderListener* listener) { listener_ = listener; } |
| +#endif |
| // A suggested upper bound for how many matches a provider should return. |
| // TODO(pkasting): http://b/1111299 , http://b/933133 This should go away once |
| // we have good relevance heuristics; the controller should handle all |