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

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

Issue 1579433002: Make profile statistics tasks inspectable by tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed ProfileAttributesStorage related functions in profile_statistics.* Created 4 years, 9 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 (c) 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_PROFILES_PROFILE_STATISTICS_FACTORY_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_STATISTICS_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10
11 namespace base {
12 template <typename T> struct DefaultSingletonTraits;
13 }
14
15 class Profile;
16 class ProfileStatistics;
17
18 // Singleton that owns all ProfileStatistics and associates them with Profiles.
19 class ProfileStatisticsFactory : public BrowserContextKeyedServiceFactory {
20 public:
21 static ProfileStatistics* GetForProfile(Profile* profile);
22
23 static ProfileStatisticsFactory* GetInstance();
24
25 private:
26 friend struct base::DefaultSingletonTraits<ProfileStatisticsFactory>;
27
28 ProfileStatisticsFactory();
29
30 // BrowserContextKeyedServiceFactory:
31 KeyedService* BuildServiceInstanceFor(
32 content::BrowserContext* context) const override;
33
34 DISALLOW_COPY_AND_ASSIGN(ProfileStatisticsFactory);
35 };
36
37 #endif // CHROME_BROWSER_PROFILES_PROFILE_STATISTICS_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_statistics_common.cc ('k') | chrome/browser/profiles/profile_statistics_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698