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_UNENROLLMENT_HANDLER_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_UNENROLLMENT_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"
14 class ConsumerUnenrollmentHandler
;
16 class ConsumerUnenrollmentHandlerFactory
17 : public BrowserContextKeyedServiceFactory
{
19 static ConsumerUnenrollmentHandler
* GetForBrowserContext(
20 content::BrowserContext
* context
);
22 static ConsumerUnenrollmentHandlerFactory
* GetInstance();
25 friend struct base::DefaultSingletonTraits
<
26 ConsumerUnenrollmentHandlerFactory
>;
28 ConsumerUnenrollmentHandlerFactory();
29 ~ConsumerUnenrollmentHandlerFactory() override
;
31 KeyedService
* BuildServiceInstanceFor(
32 content::BrowserContext
* context
) const override
;
34 DISALLOW_COPY_AND_ASSIGN(ConsumerUnenrollmentHandlerFactory
);
39 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_UNENROLLMENT_HANDLER_FACTORY_H_