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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_counter_factory.h

Issue 2121203002: Add BrowsingDataCounterFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_bd_counters_to_components
Patch Set: Fixed Android code and rebase Created 4 years, 5 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 2016 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_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "base/strings/string16.h"
10
11 class Profile;
12
13 namespace browsing_data {
14 class BrowsingDataCounter;
15 }
16
17 class BrowsingDataCounterFactory {
18 public:
19 // Creates a new instance of BrowsingDataCounter that is counting the data
20 // related to a given deletion preference |pref_name| for |profile|.
21 static browsing_data::BrowsingDataCounter* GetForPreference(
msramek 2016/07/07 11:55:33 Consider calling this GetForProfileAndPreference o
ioanap 2016/07/07 16:30:48 GetForProfileAndPref sounds good! Done.
22 std::string pref_name,
msramek 2016/07/07 11:55:33 nit: use a const ref to avoid copying the string
ioanap 2016/07/07 16:30:48 Done.
23 Profile* profile);
24
25 private:
26 BrowsingDataCounterFactory();
27 ~BrowsingDataCounterFactory();
28
29 DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterFactory);
30 };
31
32 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698