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

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: Addressed comments 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 <memory>
9 #include <string>
10
11 #include "base/macros.h"
12
13 class Profile;
14
15 namespace browsing_data {
16 class BrowsingDataCounter;
17 }
18
19 class BrowsingDataCounterFactory {
20 public:
21 // Creates a new instance of BrowsingDataCounter that is counting the data
22 // for |profile|, related to a given deletion preference |pref_name|.
23 static std::unique_ptr<browsing_data::BrowsingDataCounter>
24 GetForProfileAndPref(Profile* profile, const std::string& pref_name);
25
26 private:
27 BrowsingDataCounterFactory();
28 ~BrowsingDataCounterFactory();
29
30 DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterFactory);
31 };
32
33 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698