blob: 6f1d56caec5d4446c10a1b28839276356300f55a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SIGNIN_ACCOUNT_INVESTIGATOR_FACTORY_H_
#define CHROME_BROWSER_SIGNIN_ACCOUNT_INVESTIGATOR_FACTORY_H_
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class Profile;
class AccountInvestigator;
namespace base {
template <typename T>
struct DefaultSingletonTraits;
} // namespace base
// Factory for BrowserKeyedService AccountInvestigator.
class AccountInvestigatorFactory : public BrowserContextKeyedServiceFactory {
public:
static AccountInvestigator* GetForProfile(Profile* profile);
static AccountInvestigatorFactory* GetInstance();
AccountInvestigatorFactory(const AccountInvestigatorFactory&) = delete;
AccountInvestigatorFactory& operator=(const AccountInvestigatorFactory&) =
delete;
private:
friend struct base::DefaultSingletonTraits<AccountInvestigatorFactory>;
AccountInvestigatorFactory();
~AccountInvestigatorFactory() override;
// BrowserContextKeyedServiceFactory:
KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override;
void RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) override;
bool ServiceIsCreatedWithBrowserContext() const override;
bool ServiceIsNULLWhileTesting() const override;
};
#endif // CHROME_BROWSER_SIGNIN_ACCOUNT_INVESTIGATOR_FACTORY_H_
|