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

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

Issue 10060003: Support for different weight-functions for time-slicing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added missing #include Created 8 years, 7 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_backend_unittest.cc ('k') | chrome/browser/history/visit_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/visit_database.h
diff --git a/chrome/browser/history/visit_database.h b/chrome/browser/history/visit_database.h
index 6449efa3383c1318cfffa29aa8cba31428c43770..bc40d58c4f09c383c54419b2cab6a558c4545ab6 100644
--- a/chrome/browser/history/visit_database.h
+++ b/chrome/browser/history/visit_database.h
@@ -98,11 +98,12 @@ class VisitDatabase {
// that, the most recent |max_count| will be returned. If 0, all visits in the
// range will be computed.
//
- // Only one visit for each URL will be returned, and it will be the most
- // recent one in the time range.
+ // If |unique| is set, only one visit for each URL will be returned, and it
+ // will be the most recent one in the time range.
void GetVisibleVisitsInRange(base::Time begin_time, base::Time end_time,
int max_count,
- VisitVector* visits);
+ VisitVector* visits,
+ bool unique);
// Fills all visits in the given time ranges into the given vector that should
// be user-visible, which excludes things like redirects and subframes. The
@@ -111,9 +112,6 @@ class VisitDatabase {
// Up to |max_count| visits will be returned. If there are more visits than
// that, the most recent |max_count| will be returned. If 0, all visits in the
// range will be computed.
- //
- // Only one visit for each URL will be returned, and it will be the most
- // recent one in the time range.
void GetVisibleVisitsDuringTimes(const VisitFilter& time_filter,
int max_count,
VisitVector* visits);
« no previous file with comments | « chrome/browser/history/history_backend_unittest.cc ('k') | chrome/browser/history/visit_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698