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

Unified Diff: chrome/browser/autocomplete/history_url_provider.h

Issue 54903004: Make HistoryURLProvider::SuggestExactInput() non-static, and take only the (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 | « no previous file | chrome/browser/autocomplete/history_url_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/history_url_provider.h
===================================================================
--- chrome/browser/autocomplete/history_url_provider.h (revision 232228)
+++ chrome/browser/autocomplete/history_url_provider.h (working copy)
@@ -162,21 +162,21 @@
HistoryURLProvider(AutocompleteProviderListener* listener, Profile* profile);
- // Returns a match corresponding to exactly what the user has typed.
- // |trim_http| should not be set to true if |input| contains an http
- // prefix.
- // NOTE: This does not set the relevance of the returned match, as different
- // callers want different behavior. Callers must set this manually.
- // This function is static so SearchProvider may construct similar matches.
- static AutocompleteMatch SuggestExactInput(AutocompleteProvider* provider,
- const AutocompleteInput& input,
- bool trim_http);
-
- // AutocompleteProvider
+ // HistoryProvider:
virtual void Start(const AutocompleteInput& input,
bool minimal_changes) OVERRIDE;
virtual void Stop(bool clear_cached_results) OVERRIDE;
+ // Returns a match representing a navigation to |destination_url| given user
+ // input of |text|. |trim_http| controls whether the match's |fill_into_edit|
+ // and |contents| should have any HTTP scheme stripped off, and should not be
+ // set to true if |text| contains an http prefix.
+ // NOTE: This does not set the relevance of the returned match, as different
+ // callers want different behavior. Callers must set this manually.
+ AutocompleteMatch SuggestExactInput(const string16& text,
+ const GURL& destination_url,
+ bool trim_http);
+
// Runs the history query on the history thread, called by the history
// system. The history database MAY BE NULL in which case it is not
// available and we should return no data. Also schedules returning the
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_url_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698