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

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: Respond to msramek's comment 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..56fa1140c7252a5e9c780e0620d2bff7dfede1a7 100644
--- a/components/history/core/browser/history_service.h
+++ b/components/history/core/browser/history_service.h
@@ -342,6 +342,18 @@ class HistoryService : public syncer::SyncableService, public KeyedService {
const QueryFilteredURLsCallback& callback,
base::CancelableTaskTracker* tracker);
+ // Statistics ----------------------------------------------------------------
+
+ // Gets the number of URLs as seen in chrome://history with infinite date
+ // range. If a URL is visited in multiple days, the URL is counted once for
+ // each day. For determination of the date, timestamps are converted to dates
+ // using local time.
+ typedef base::Callback<void(HistoryCountResult)> GetHistoryCountCallback;
+
+ base::CancelableTaskTracker::TaskId GetHistoryCount(
+ const GetHistoryCountCallback& callback,
+ base::CancelableTaskTracker* tracker);
+
// Database management operations --------------------------------------------
// Delete all the information related to a single url.
« no previous file with comments | « components/history/core/browser/history_backend.cc ('k') | components/history/core/browser/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698