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

Unified Diff: chrome/browser/profiles/profile_statistics.h

Issue 1415223002: Add counts of User data to ProfileInfoCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added methods in profile_statistics.cc to access ProfileInfoCache, fixed a few style errors Created 5 years, 1 month 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: chrome/browser/profiles/profile_statistics.h
diff --git a/chrome/browser/profiles/profile_statistics.h b/chrome/browser/profiles/profile_statistics.h
index 94c29739e710a5a053a1e85256aec35adb4ca522..33612f141bb9a4bcb88881acadfebfc74ee1ce9b 100644
--- a/chrome/browser/profiles/profile_statistics.h
+++ b/chrome/browser/profiles/profile_statistics.h
@@ -36,6 +36,8 @@ using ProfileCategoryStats = std::vector<ProfileCategoryStat>;
// |ProfileCategoryStats| is made each time the callback is called.
using ProfileStatisticsCallback = base::Callback<void(ProfileCategoryStats)>;
+// Profile Statistics ----------------------------------------------------------
+
// This function collects statistical information about |profile| and returns
// the information via |callback|. Currently bookmarks, history, logins and
// preferences are counted. The callback function will probably be called more
@@ -44,6 +46,15 @@ void GetProfileStatistics(Profile* profile,
const ProfileStatisticsCallback& callback,
base::CancelableTaskTracker* tracker);
+// ProfileInfoCache ------------------------------------------------------------
+
+// Gets statistical information about |profile| from ProfileInfoCache.
+ProfileCategoryStats GetProfileStatisticsFromCache(Profile* profile);
+
+// Stores statistical information to ProfileInfoCache.
+void StoreProfileStatisticsToCache(Profile* profile,
+ const std::string& category, int count);
+
} // namespace profiles
#endif // CHROME_BROWSER_PROFILES_PROFILE_STATISTICS_H_

Powered by Google App Engine
This is Rietveld 408576698