Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / chromeos / policy / consumer_unenrollment_handler_factory.h
blob77b11bb13e0173e82cb5fe5a023c5d0cfb446c62
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"
12 namespace policy {
14 class ConsumerUnenrollmentHandler;
16 class ConsumerUnenrollmentHandlerFactory
17 : public BrowserContextKeyedServiceFactory {
18 public:
19 static ConsumerUnenrollmentHandler* GetForBrowserContext(
20 content::BrowserContext* context);
22 static ConsumerUnenrollmentHandlerFactory* GetInstance();
24 private:
25 friend struct DefaultSingletonTraits<ConsumerUnenrollmentHandlerFactory>;
27 ConsumerUnenrollmentHandlerFactory();
28 ~ConsumerUnenrollmentHandlerFactory() override;
30 KeyedService* BuildServiceInstanceFor(
31 content::BrowserContext* context) const override;
33 DISALLOW_COPY_AND_ASSIGN(ConsumerUnenrollmentHandlerFactory);
36 } // namespace policy
38 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_UNENROLLMENT_HANDLER_FACTORY_H_