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

Unified Diff: components/history/core/browser/history_service.h

Issue 1248613003: Issue 501916 : Add data type counts to profile deletion flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Seventh draft Created 5 years, 4 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: 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.

Powered by Google App Engine
This is Rietveld 408576698