Index: chrome/browser/extensions/api/networking_config/networking_config_service_factory.h |
diff --git a/chrome/browser/extensions/api/networking_config/networking_config_service_factory.h b/chrome/browser/extensions/api/networking_config/networking_config_service_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8090ae3f75ec19b04076831e1c13a9dfded6b020 |
--- /dev/null |
+++ b/chrome/browser/extensions/api/networking_config/networking_config_service_factory.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2015 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_EXTENSIONS_API_NETWORKING_CONFIG_NETWORKING_CONFIG_SERVICE_FACTORY_H_ |
+#define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_CONFIG_NETWORKING_CONFIG_SERVICE_FACTORY_H_ |
+ |
+#include "base/memory/singleton.h" |
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h" |
+ |
+namespace content { |
+class BrowserContext; |
+} // namespace content |
+ |
+namespace extensions { |
+class NetworkingConfigService; |
+ |
+class NetworkingConfigServiceFactory |
+ : public BrowserContextKeyedServiceFactory { |
+ public: |
+ static NetworkingConfigService* GetForBrowserContext( |
+ content::BrowserContext* context); |
+ |
+ static NetworkingConfigServiceFactory* GetInstance(); |
+ |
+ private: |
+ friend struct DefaultSingletonTraits<NetworkingConfigServiceFactory>; |
+ |
+ NetworkingConfigServiceFactory(); |
+ ~NetworkingConfigServiceFactory() override; |
+ |
+ // BrowserContextKeyedBaseFactory |
+ KeyedService* BuildServiceInstanceFor( |
+ content::BrowserContext* context) const override; |
+ content::BrowserContext* GetBrowserContextToUse( |
+ content::BrowserContext* context) const override; |
+}; |
+ |
+} // namespace extensions |
+ |
+#endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_CONFIG_NETWORKING_CONFIG_SERVICE_FACTORY_H_ |