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

Unified Diff: chrome/browser/history/history.cc

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/history.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history.cc
diff --git a/chrome/browser/history/history.cc b/chrome/browser/history/history.cc
index b503dd2a4a6c525563faaca931bc04077fd7678d..fba6aae890165738f08c331937987d6de5029ab9 100644
--- a/chrome/browser/history/history.cc
+++ b/chrome/browser/history/history.cc
@@ -39,6 +39,7 @@
#include "chrome/browser/history/in_memory_database.h"
#include "chrome/browser/history/in_memory_history_backend.h"
#include "chrome/browser/history/in_memory_url_index.h"
+#include "chrome/browser/history/time_filter.h"
#include "chrome/browser/history/top_sites.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -633,6 +634,18 @@ HistoryService::Handle HistoryService::QueryMostVisitedURLs(
result_count, days_back);
}
+HistoryService::Handle HistoryService::QueryMostVisitedURLsDuringTime(
+ int result_count,
+ const history::TimeFilter& filter,
+ CancelableRequestConsumerBase* consumer,
+ const QueryMostVisitedURLsCallback& callback) {
+ return Schedule(PRIORITY_NORMAL,
+ &HistoryBackend::QueryMostVisitedURLsDuringTime,
+ consumer,
+ new history::QueryMostVisitedURLsRequest(callback),
+ result_count, filter);
+}
+
void HistoryService::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
« no previous file with comments | « chrome/browser/history/history.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698