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

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

Issue 9358073: First version of the time slicing on the urls. Not ready for review yet. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added relative time to time slicing Created 8 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
« no previous file with comments | « chrome/browser/history/visit_database.cc ('k') | chrome/browser/history/visitsegment_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/visitsegment_database.h
diff --git a/chrome/browser/history/visitsegment_database.h b/chrome/browser/history/visitsegment_database.h
index 4afa25998226b47c1ead23fa4f66f7cda06ff56c..95eed5718b4e978ed638e1e9f8a71c33b5b220d4 100644
--- a/chrome/browser/history/visitsegment_database.h
+++ b/chrome/browser/history/visitsegment_database.h
@@ -58,6 +58,14 @@ class VisitSegmentDatabase {
int max_result_count,
std::vector<PageUsageData*>* result);
+ // Compute the segment usage from |from_time| to |to_time| using the provided
+ // aggregator. A PageUsageData is added in |result| for the highest-scored
+ // segments up to |max_result_count|.
+ void QuerySegmentUsageTimeInterval(base::Time from_time,
+ base::Time to_time,
+ int max_result_count,
+ std::vector<PageUsageData*>* result);
+
// Delete all the segment usage data which is older than the provided time
// stamp.
bool DeleteSegmentData(base::Time older_than);
« no previous file with comments | « chrome/browser/history/visit_database.cc ('k') | chrome/browser/history/visitsegment_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698