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

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: Third draft - removed all password manager code Created 5 years, 5 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..2fd62ab4fad51faaf733a6ac0754bd2ca24ff50a 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 HistoryService::CountURLs(
lwchkg 2015/07/29 14:46:05 The extra "HistoryService::" is causing errors in
+ 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