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

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

Issue 1415223002: Add counts of User data to ProfileInfoCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix. Removed a non-trivial style fix (will upload in another CL). 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_attributes_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_attributes_entry.h
diff --git a/chrome/browser/profiles/profile_attributes_entry.h b/chrome/browser/profiles/profile_attributes_entry.h
index 898557792594d675337a446ae23b823c990f8b63..3fdbdd647f28f800dc811606314369bdd342a434 100644
--- a/chrome/browser/profiles/profile_attributes_entry.h
+++ b/chrome/browser/profiles/profile_attributes_entry.h
@@ -84,6 +84,16 @@ class ProfileAttributesEntry {
// Returns the index of the default icon used by the profile.
size_t GetAvatarIconIndex() const;
+ // Browsing statistics of the profile.
+ bool HasStatsBrowsingHistory() const;
+ int GetStatsBrowsingHistory() const;
+ bool HasStatsPasswords() const;
+ int GetStatsPasswords() const;
+ bool HasStatsBookmarks() const;
+ int GetStatsBookmarks() const;
+ bool HasStatsSettings() const;
+ int GetStatsSettings() const;
+
void SetName(const base::string16& name);
void SetShortcutName(const base::string16& name);
void SetIsOmitted(bool is_omitted);
@@ -102,6 +112,12 @@ class ProfileAttributesEntry {
void SetIsAuthError(bool value);
void SetAvatarIconIndex(size_t icon_index);
+ // Get the statistics of the profile.
+ void SetStatsBrowsingHistory(int value);
+ void SetStatsPasswords(int value);
+ void SetStatsBookmarks(int value);
+ void SetStatsSettings(int value);
+
void SetAuthInfo(const std::string& gaia_id,
const base::string16& user_name);
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_attributes_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698