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 CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_ENROLLMENT_HANDLER_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_ENROLLMENT_HANDLER_FACTORY_H_
8 #include "base/macros.h"
9 #include "base/memory/singleton.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
20 class ConsumerEnrollmentHandler
;
22 class ConsumerEnrollmentHandlerFactory
23 : public BrowserContextKeyedServiceFactory
{
25 static ConsumerEnrollmentHandler
* GetForBrowserContext(
26 content::BrowserContext
* context
);
28 static ConsumerEnrollmentHandlerFactory
* GetInstance();
31 friend struct base::DefaultSingletonTraits
<ConsumerEnrollmentHandlerFactory
>;
33 ConsumerEnrollmentHandlerFactory();
34 ~ConsumerEnrollmentHandlerFactory() override
;
36 // BrowserContextKeyedServiceFactory:
37 KeyedService
* BuildServiceInstanceFor(
38 content::BrowserContext
* context
) const override
;
39 bool ServiceIsCreatedWithBrowserContext() const override
;
41 DISALLOW_COPY_AND_ASSIGN(ConsumerEnrollmentHandlerFactory
);
46 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_ENROLLMENT_HANDLER_FACTORY_H_