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

Side by Side Diff: chrome/browser/profiles/profile_statistics.h

Issue 1248613003: Issue 501916 : Add data type counts to profile deletion flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Third draft - removed all password manager code Created 5 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_STATISTICS_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_STATISTICS_H_
7
8 #include <string>
9 #include <utility>
10 #include <vector>
11 #include "base/task/cancelable_task_tracker.h"
12 #include "chrome/browser/profiles/profile.h"
13
14 namespace profiles {
msramek 2015/07/29 18:10:25 Nit: Empty line after this line.
lwchkg 2015/07/30 17:07:19 Acknowledged.
15 // Definition of the return value of |ProfileStatisticsCallback|.
16 // The data stored in |ProfileStatisticsValues| looks like this:
17 // <"Browsing History", 912>, <"Passwords", 71>, <"Bookmarks", 120>,
18 // <"Settings", 200>
19 typedef std::vector<std::pair<std::string, int> > ProfileStatisticsValues;
msramek 2015/07/29 18:10:25 Wouldn't std::map<std::string, int> be preferable?
lwchkg 2015/07/30 17:07:19 I agree, but that vector is the idea of Mike, so I
20 // Definition of the callback function. Note that a copy of
21 // |ProfileStatisticsValues| is made each time the callback is called.
22 typedef base::Callback<void(ProfileStatisticsValues)>
23 ProfileStatisticsCallback;
24
25 // This class collect statistical information about the profile and returns the
msramek 2015/07/29 18:10:25 Copy-pasted comment. Please update.
lwchkg 2015/07/30 17:07:19 Acknowledged.
26 // information via a callback function. Currently bookmarks, history, logins and
27 // preferences are counted. The callback function may be called more than once.
28 void GetProfileStatistics(Profile* profile,
msramek 2015/07/29 18:10:25 Nit: formatting. http://google-styleguide.googlec
lwchkg 2015/07/30 17:07:19 Acknowledged.
29 const ProfileStatisticsCallback& callback,
30 base::CancelableTaskTracker* tracker);
31
32 } // namespace profiles
33
34 #endif // CHROME_BROWSER_PROFILES_PROFILE_STATISTICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698