Index: components/history/core/browser/history_service.h |
diff --git a/components/history/core/browser/history_service.h b/components/history/core/browser/history_service.h |
index fb12f816012d3865b1ae54cb3846bf1293ee0933..c1df3e4f6b851418a01ff4c8c9a2821eba36c0f1 100644 |
--- a/components/history/core/browser/history_service.h |
+++ b/components/history/core/browser/history_service.h |
@@ -331,6 +331,17 @@ class HistoryService : public syncer::SyncableService, public KeyedService { |
const QueryFilteredURLsCallback& callback, |
base::CancelableTaskTracker* tracker); |
+ // Statistics ---------------------------------------------------------------- |
+ |
+ // Returns the count of URLs in the url database. The argument is the count. |
+ // The count is zero if query to the database failed. |
+ typedef base::Callback<void(int)> CountURLsCallback; |
+ |
+ // Returns the count of URLs in the url database. |
+ base::CancelableTaskTracker::TaskId CountURLs( |
+ const CountURLsCallback& callback, |
+ base::CancelableTaskTracker* tracker); |
+ |
// Database management operations -------------------------------------------- |
// Delete all the information related to a single url. |