diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-16 20:17:09 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-16 20:17:09 +0000 |
commit | 9a8b3f59415ec46bdbcfb62e1a2074be18c27613 (patch) | |
tree | b32f3665b02c1df8268fff202e4c928eceb49bfc /chrome | |
parent | d7010df4c6fff92026bdfe1a26156ce3d3387c87 (diff) | |
download | chromium_src-9a8b3f59415ec46bdbcfb62e1a2074be18c27613.zip chromium_src-9a8b3f59415ec46bdbcfb62e1a2074be18c27613.tar.gz chromium_src-9a8b3f59415ec46bdbcfb62e1a2074be18c27613.tar.bz2 |
Provide better documentation for visit and typed count in the URL DB.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/7033010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85529 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/history/history_types.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/history/history_types.h b/chrome/browser/history/history_types.h index 44c422e..6a3e553 100644 --- a/chrome/browser/history/history_types.h +++ b/chrome/browser/history/history_types.h @@ -87,6 +87,10 @@ class URLRow { } } + // The number of times this URL has been visited. This will often match the + // number of entries in the visit table for this URL, but won't always. It's + // really designed for autocomplete ranking, so some "useless" transitions + // from the visit table aren't counted in this tally. int visit_count() const { return visit_count_; } @@ -94,7 +98,11 @@ class URLRow { visit_count_ = visit_count; } - // Number of times the URL was typed in the Omnibox. + // Number of times the URL was typed in the Omnibox. This "should" match + // the number of TYPED transitions in the visit table. It's used primarily + // for faster autocomplete ranking. If you need to know the actual number of + // TYPED transitions, you should query the visit table since there could be + // something out of sync. int typed_count() const { return typed_count_; } |