OLD | NEW |
---|---|
(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_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_SERVIC E_FACTORY_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_SERVIC E_FACTORY_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" | |
10 | |
11 template <typename T> | |
12 struct DefaultSingletonTraits; | |
13 | |
14 namespace chromeos { | |
15 | |
16 class CertificateProviderService; | |
17 | |
18 // Factory to create CertificateProviderService. | |
19 class CertificateProviderServiceFactory | |
20 : public BrowserContextKeyedServiceFactory { | |
21 public: | |
22 static CertificateProviderService* GetForBrowserContext( | |
23 content::BrowserContext* context); | |
bartfab (slow)
2015/09/03 17:30:52
Nit: Forward-declare |content::BrowserContext|.
pneubeck (no reviews)
2015/09/07 17:21:31
Done.
| |
24 | |
25 static CertificateProviderServiceFactory* GetInstance(); | |
26 | |
27 private: | |
28 friend struct DefaultSingletonTraits<CertificateProviderServiceFactory>; | |
29 | |
30 CertificateProviderServiceFactory(); | |
31 ~CertificateProviderServiceFactory() override; | |
bartfab (slow)
2015/09/03 17:30:52
Nit: Why do you need to override the destructor?
pneubeck (no reviews)
2015/09/07 17:21:31
Done.
| |
32 | |
33 // BrowserContextKeyedServiceFactory: | |
34 content::BrowserContext* GetBrowserContextToUse( | |
35 content::BrowserContext* context) const override; | |
36 bool ServiceIsNULLWhileTesting() const override; | |
37 KeyedService* BuildServiceInstanceFor( | |
38 content::BrowserContext* context) const override; | |
39 | |
40 DISALLOW_COPY_AND_ASSIGN(CertificateProviderServiceFactory); | |
41 }; | |
42 | |
43 } // namespace chromeos | |
44 | |
45 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_SER VICE_FACTORY_H_ | |
OLD | NEW |