summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/history.h
diff options
context:
space:
mode:
authormeelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-01 17:27:37 +0000
committermeelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-01 17:27:37 +0000
commita003b3c269dbca5e2ca7bccf541319e11869e545 (patch)
tree4693a02e65e0456c1911496f9d91f6db48e91d08 /chrome/browser/history/history.h
parente6f546c3ab626d39d375376890b7f4bfef92f48e (diff)
downloadchromium_src-a003b3c269dbca5e2ca7bccf541319e11869e545.zip
chromium_src-a003b3c269dbca5e2ca7bccf541319e11869e545.tar.gz
chromium_src-a003b3c269dbca5e2ca7bccf541319e11869e545.tar.bz2
Add a function to the History to return a list of the top n visited URLs where and the list of most recent redirects for each of those URLs.
Review URL: http://codereview.chromium.org/151057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19743 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/history.h')
-rw-r--r--chrome/browser/history/history.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/history/history.h b/chrome/browser/history/history.h
index fcea84f..200e19c 100644
--- a/chrome/browser/history/history.h
+++ b/chrome/browser/history/history.h
@@ -305,6 +305,20 @@ class HistoryService : public CancelableRequestProvider,
CancelableRequestConsumerBase* consumer,
GetVisitCountToHostCallback* callback);
+ // Called when QueryTopURLsAndRedirects completes. The vector contains a list
+ // of the top |result_count| URLs. For each of these URLs, there is an entry
+ // in the map containing redirects from the URL. For example, if we have the
+ // redirect chain A -> B -> C and A is a top visited URL, then A will be in
+ // the vector and "A => {B -> C}" will be in the map.
+ typedef Callback2<std::vector<GURL>*, history::RedirectMap*>::Type
+ QueryTopURLsAndRedirectsCallback;
+
+ // Request the top |result_count| most visited URLs and the chain of redirects
+ // leading to each of these URLs.
+ Handle QueryTopURLsAndRedirects(int result_count,
+ CancelableRequestConsumerBase* consumer,
+ QueryTopURLsAndRedirectsCallback* callback);
+
// Thumbnails ----------------------------------------------------------------
// Implemented by consumers to get thumbnail data. Called when a request for