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

Unified Diff: chrome/browser/history/in_memory_url_index.h

Issue 11757004: Omnibox: Add Mid-Input Matching to HistoryQuick Provider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo in comment Created 7 years, 10 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
Index: chrome/browser/history/in_memory_url_index.h
diff --git a/chrome/browser/history/in_memory_url_index.h b/chrome/browser/history/in_memory_url_index.h
index c809a241cead1c1cc66ad94f0725194325c4d81d..918563fbf7a39f7ce7541e399b6bc5797184631c 100644
--- a/chrome/browser/history/in_memory_url_index.h
+++ b/chrome/browser/history/in_memory_url_index.h
@@ -117,8 +117,11 @@ class InMemoryURLIndex : public content::NotificationObserver,
// Scans the history index and returns a vector with all scored, matching
// history items. This entry point simply forwards the call on to the
// URLIndexPrivateData class. For a complete description of this function
- // refer to that class.
- ScoredHistoryMatches HistoryItemsForTerms(const string16& term_string);
+ // refer to that class. If |cursor_position| is string16::npos, the
+ // function doesn't do anything special with the cursor; this is equivalent
+ // to the cursor being at the end.
+ ScoredHistoryMatches HistoryItemsForTerms(const string16& term_string,
+ size_t cursor_position);
// Deletes the index entry, if any, for the given |url|.
void DeleteURL(const GURL& url);
« no previous file with comments | « chrome/browser/autocomplete/history_quick_provider.cc ('k') | chrome/browser/history/in_memory_url_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698