Index: chrome/browser/history/history_extension_api.h |
diff --git a/chrome/browser/history/history_extension_api.h b/chrome/browser/history/history_extension_api.h |
index e66ea76882ed063d6a6119c07cd09246fffe799f..d6b26d306646ff28bb05fa7ec05c9269b04115fa 100644 |
--- a/chrome/browser/history/history_extension_api.h |
+++ b/chrome/browser/history/history_extension_api.h |
@@ -137,4 +137,17 @@ class DeleteRangeHistoryFunction : public HistoryFunctionWithCallback { |
void DeleteComplete(); |
}; |
+class GetMostVisitedHistoryFunction : public HistoryFunctionWithCallback { |
+ public: |
+ virtual bool RunAsyncImpl() OVERRIDE; |
+ DECLARE_EXTENSION_FUNCTION_NAME("history.getMostVisited"); |
+ |
+ // Callback for QueryMostVisitedURLs. |
+ void QueryComplete(CancelableRequestProvider::Handle handle, |
+ history::MostVisitedURLList pages); |
+ |
+ // We need a consumer for QueryMostVisitedURLs. |
+ CancelableRequestConsumer history_consumer_; |
+}; |
+ |
#endif // CHROME_BROWSER_HISTORY_HISTORY_EXTENSION_API_H_ |