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

Side by Side Diff: chrome/browser/chromeos/certificate_provider/certificate_provider_service_factory.h

Issue 1232553003: Add new certificateProvider extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 3 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 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 content {
15 class BrowserContext;
16 }
17
18 namespace chromeos {
19
20 class CertificateProviderService;
21
22 // Factory to create CertificateProviderService.
23 class CertificateProviderServiceFactory
24 : public BrowserContextKeyedServiceFactory {
25 public:
26 static CertificateProviderService* GetForBrowserContext(
27 content::BrowserContext* context);
28
29 static CertificateProviderServiceFactory* GetInstance();
30
31 private:
32 friend struct DefaultSingletonTraits<CertificateProviderServiceFactory>;
33
34 CertificateProviderServiceFactory();
35
36 // BrowserContextKeyedServiceFactory:
37 content::BrowserContext* GetBrowserContextToUse(
38 content::BrowserContext* context) const override;
39 bool ServiceIsNULLWhileTesting() const override;
40 KeyedService* BuildServiceInstanceFor(
41 content::BrowserContext* context) const override;
42
43 DISALLOW_COPY_AND_ASSIGN(CertificateProviderServiceFactory);
44 };
45
46 } // namespace chromeos
47
48 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_SER VICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698