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

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

Issue 1345473003: Added HistoryService::GetHistoryCount() and helper functions in components/history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 f197d2bc25d83f65c7c87f2940a416c1a6930cbf..71fda1678d13f8ed2871f74c3383fc4df71f2f0a 100644
--- a/components/history/core/browser/history_service.h
+++ b/components/history/core/browser/history_service.h
@@ -342,6 +342,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.
msramek 2015/09/14 17:28:16 I'd suggest omitting this comment. The fact that t
lwchkg 2015/09/15 14:27:08 Thanks. Just forgot to update the comment here.
+ // The count is zero if query to the database failed.
+ typedef base::Callback<void(HistoryCountResult)> GetHistoryCountCallback;
msramek 2015/09/14 17:28:16 This shouldn't be called "Get", as it's not a gett
lwchkg 2015/09/15 14:27:08 Puzzled here. This is the callback function in Get
msramek 2015/09/16 11:16:30 Oh... of course :) Sorry for that.
+
+ // Returns the count of URLs in the url database.
msramek 2015/09/14 17:28:16 Please update the comment to explain that we're co
lwchkg 2015/09/15 14:27:08 Acknowledged.
+ base::CancelableTaskTracker::TaskId GetHistoryCount(
+ const GetHistoryCountCallback& 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