Add ICU message format support
[chromium-blink-merge.git] / extensions / browser / api / vpn_provider / vpn_service_factory.h
blob51ee00b5f34251afc43704c0a2f0d5361dd2122b
1 // Copyright 2014 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.
5 #ifndef EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_FACTORY_H_
6 #define EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_FACTORY_H_
8 #include "base/macros.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
11 namespace content {
13 class BrowserContext;
15 } // namespace content
17 template <typename T>
18 struct DefaultSingletonTraits;
20 namespace chromeos {
22 class VpnService;
24 // Factory to create VpnService.
25 class VpnServiceFactory : public BrowserContextKeyedServiceFactory {
26 public:
27 static VpnService* GetForBrowserContext(content::BrowserContext* context);
28 static VpnServiceFactory* GetInstance();
30 private:
31 friend struct DefaultSingletonTraits<VpnServiceFactory>;
33 VpnServiceFactory();
34 ~VpnServiceFactory() override;
36 // BrowserContextKeyedServiceFactory:
37 bool ServiceIsCreatedWithBrowserContext() const override;
38 bool ServiceIsNULLWhileTesting() const override;
39 KeyedService* BuildServiceInstanceFor(
40 content::BrowserContext* context) const override;
42 DISALLOW_COPY_AND_ASSIGN(VpnServiceFactory);
45 } // namespace chromeos
47 #endif // EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_FACTORY_H_