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..bd29602d4782c9cf7af9fd5f31d140dcf5366c18 100644 |
--- a/chrome/browser/history/history_extension_api.h |
+++ b/chrome/browser/history/history_extension_api.h |
@@ -83,6 +83,16 @@ class HistoryFunctionWithCallback : public HistoryFunction { |
void SendResponseToCallback(); |
}; |
+class GetMostVisitedHistoryFunction : public HistoryFunctionWithCallback { |
+ public: |
+ virtual bool RunAsyncImpl() OVERRIDE; |
+ DECLARE_EXTENSION_FUNCTION_NAME("history.getMostVisited"); |
+ |
+ // Callback for the history function to provide results. |
+ void QueryComplete(CancelableRequestProvider::Handle handle, |
+ history::MostVisitedURLList data); |
+}; |
+ |
class GetVisitsHistoryFunction : public HistoryFunctionWithCallback { |
public: |
// Override HistoryFunction. |