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

Unified Diff: components/history/core/browser/history_backend.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
« no previous file with comments | « no previous file | components/history/core/browser/history_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/history_backend.h
diff --git a/components/history/core/browser/history_backend.h b/components/history/core/browser/history_backend.h
index 51f95194fcd0f5ad6f75880ded5b3db38ab9864f..fa768b953dde5014d58d4391047640b172112c7b 100644
--- a/components/history/core/browser/history_backend.h
+++ b/components/history/core/browser/history_backend.h
@@ -274,6 +274,14 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
bool debug,
FilteredURLList* result);
+ // 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.
+ HistoryCountResult GetHistoryCount();
+
// Favicon -------------------------------------------------------------------
void GetFavicons(
« no previous file with comments | « no previous file | components/history/core/browser/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698