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.
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_USERS_PRIVATE_USERS_PRIVATE_DELEGATE_FACTORY_H__
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_USERS_PRIVATE_USERS_PRIVATE_DELEGATE_FACTORY_H__
8 #include "base/memory/singleton.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
15 namespace extensions
{
16 class UsersPrivateDelegate
;
18 // BrowserContextKeyedServiceFactory for each UsersPrivateDelegate.
19 class UsersPrivateDelegateFactory
: public BrowserContextKeyedServiceFactory
{
21 static UsersPrivateDelegate
* GetForBrowserContext(
22 content::BrowserContext
* browser_context
);
24 static UsersPrivateDelegateFactory
* GetInstance();
27 friend struct DefaultSingletonTraits
<UsersPrivateDelegateFactory
>;
29 UsersPrivateDelegateFactory();
30 ~UsersPrivateDelegateFactory() override
;
32 // BrowserContextKeyedBaseFactory implementation.
33 KeyedService
* BuildServiceInstanceFor(
34 content::BrowserContext
* profile
) const override
;
36 DISALLOW_COPY_AND_ASSIGN(UsersPrivateDelegateFactory
);
39 } // namespace extensions
41 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_USERS_PRIVATE_USERS_PRIVATE_DELEGATE_FACTORY_H__