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_ |