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

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: 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..c1cab81cf35da03ebad9c5f6618e257cc5a70531 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
msramek 2015/09/14 17:28:16 nit: period at the end of sentence
lwchkg 2015/09/15 14:27:08 Acknowledged.
+struct HistoryCountResult {
+ // Indicates whether the call to HistoryBackend::GetHistoryCount was
+ // successfull or not. If false, then |count| is undefined.
msramek 2015/09/14 17:28:16 nit: successful
lwchkg 2015/09/15 14:27:08 Acknowledged. Embarassing spelling mistake.
+ bool success;
+ int count;
+};
+
// Favicons -------------------------------------------------------------------
// Used for the mapping between the page and icon.

Powered by Google App Engine
This is Rietveld 408576698