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) { |