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.
4 #ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_FACTORY_LINUX_H_
5 #define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_FACTORY_LINUX_H_
7 #include "base/memory/singleton.h"
8 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
14 namespace extensions {
16 class NetworkingPrivateLinux;
18 class NetworkingPrivateLinuxFactory : public BrowserContextKeyedServiceFactory {
20 static NetworkingPrivateLinux* GetForBrowserContext(
21 content::BrowserContext* browser_context);
22 static NetworkingPrivateLinuxFactory* GetInstance();
25 friend struct DefaultSingletonTraits<NetworkingPrivateLinuxFactory>;
27 NetworkingPrivateLinuxFactory();
28 ~NetworkingPrivateLinuxFactory() override;
30 // BrowserContextKeyedServiceFactory:
31 KeyedService* BuildServiceInstanceFor(
32 content::BrowserContext* browser_context) const override;
33 bool ServiceIsCreatedWithBrowserContext() const override;
34 bool ServiceIsNULLWhileTesting() const override;
36 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateLinuxFactory);
39 } // namespace extensions
41 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_FACTORY_LINUX_H_