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 COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_PASSWORD_MANAGER_INTERNALS_SERVICE_FACTORY_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_PASSWORD_MANAGER_INTERNALS_SERVICE_FACTORY_H_
8 #include "base/memory/singleton.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
15 namespace password_manager {
17 class PasswordManagerInternalsService;
19 // BrowserContextKeyedServiceFactory for PasswordManagerInternalsService.
20 class PasswordManagerInternalsServiceFactory
21 : public BrowserContextKeyedServiceFactory {
23 static PasswordManagerInternalsService* GetForBrowserContext(
24 content::BrowserContext* context);
26 static PasswordManagerInternalsServiceFactory* GetInstance();
29 friend struct DefaultSingletonTraits<PasswordManagerInternalsServiceFactory>;
31 PasswordManagerInternalsServiceFactory();
32 ~PasswordManagerInternalsServiceFactory() override;
34 // BrowserContextKeyedServiceFactory:
35 KeyedService* BuildServiceInstanceFor(
36 content::BrowserContext* context) const override;
38 DISALLOW_COPY_AND_ASSIGN(PasswordManagerInternalsServiceFactory);
41 } // namespace password_manager
43 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_PASSWORD_MANAGER_INTERNALS_SERVICE_FACTORY_H_