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

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

Issue 8286011: When users navigate to an intranet host that has not been previously typed, treat it as a typed n... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/history/url_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/url_database.h
===================================================================
--- chrome/browser/history/url_database.h (revision 105368)
+++ chrome/browser/history/url_database.h (working copy)
@@ -168,12 +168,16 @@
// sorted by typed count, then by visit count, then by visit date (most recent
// first) up to the given maximum number. If |typed_only| is true, only urls
// that have been typed once are returned. For caller convenience, returns
- // whether any results were found. Called by HistoryURLProvider.
- bool AutocompleteForPrefix(const string16& prefix,
+ // whether any results were found.
+ bool AutocompleteForPrefix(const std::string& prefix,
size_t max_results,
bool typed_only,
std::vector<URLRow>* results);
+ // Returns true if the database holds some past typed navigation to a URL on
+ // the provided hostname.
+ bool IsTypedHost(const std::string& host);
+
// Tries to find the shortest URL beginning with |base| that strictly
// prefixes |url|, and has minimum visit_ and typed_counts as specified.
// If found, fills in |info| and returns true; otherwise returns false,
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/history/url_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698