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

Unified Diff: chrome/browser/history/history_extension_api.h

Issue 9721013: Move topSites API out of experimental (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changes to reflect revision 127555 Created 8 years, 9 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
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_

Powered by Google App Engine
This is Rietveld 408576698