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

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: 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_attributes_entry.h
diff --git a/chrome/browser/profiles/profile_attributes_entry.h b/chrome/browser/profiles/profile_attributes_entry.h
index 898557792594d675337a446ae23b823c990f8b63..39592116da8917a5148f3097d16a513e0a47503b 100644
--- a/chrome/browser/profiles/profile_attributes_entry.h
+++ b/chrome/browser/profiles/profile_attributes_entry.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_ENTRY_H_
#define CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_ENTRY_H_
+#include <map>
lwchkg 2015/11/18 17:34:53 Unnecessary. Now removed.
#include <string>
#include "base/files/file_path.h"
@@ -84,6 +85,16 @@ class ProfileAttributesEntry {
// Returns the index of the default icon used by the profile.
size_t GetAvatarIconIndex() const;
+ // Get the statistics of the profiles
Mike Lerman 2015/11/17 16:29:51 Browsing statistics of the profile.
lwchkg 2015/11/18 17:34:53 Done.
+ 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 +113,12 @@ class ProfileAttributesEntry {
void SetIsAuthError(bool value);
void SetAvatarIconIndex(size_t icon_index);
+ // Set the statistics of the profiles
Mike Lerman 2015/11/17 16:29:51 nit: of the profile. (singular, and add a period)
lwchkg 2015/11/18 17:34:53 Done.
+ 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);

Powered by Google App Engine
This is Rietveld 408576698