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

Unified Diff: components/history/core/browser/history_types.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_types.h
diff --git a/components/history/core/browser/history_types.h b/components/history/core/browser/history_types.h
index 3eadbca247dfb807fcec75f1947b819c78a3f1b6..bc3d2150a1bda977cad70dc2c427d46c39c20441 100644
--- a/components/history/core/browser/history_types.h
+++ b/components/history/core/browser/history_types.h
@@ -452,6 +452,17 @@ class MostVisitedThumbnails
// Map from host to visit count, sorted by visit count descending.
typedef std::vector<std::pair<std::string, int>> TopHostsList;
+// Statistics -----------------------------------------------------------------
+
+// HistoryCountResult encapsulates the result of a call to
+// HistoryBackend::GetHistoryCount.
+struct HistoryCountResult {
+ // Indicates whether the call to HistoryBackend::GetHistoryCount was
+ // successful or not. If false, then |count| is undefined.
+ bool success;
+ int count;
+};
+
// Favicons -------------------------------------------------------------------
// Used for the mapping between the page and icon.
« no previous file with comments | « components/history/core/browser/history_service.cc ('k') | components/history/core/browser/visit_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698