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_enrollment_handler_factory.h
blobb61576163959b22bbfb5e25f8aab793cd14e4ba1
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"
12 class Profile;
14 namespace content {
15 class BrowserContext;
18 namespace policy {
20 class ConsumerEnrollmentHandler;
22 class ConsumerEnrollmentHandlerFactory
23 : public BrowserContextKeyedServiceFactory {
24 public:
25 static ConsumerEnrollmentHandler* GetForBrowserContext(
26 content::BrowserContext* context);
28 static ConsumerEnrollmentHandlerFactory* GetInstance();
30 private:
31 friend struct 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);
44 } // namespace policy
46 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_ENROLLMENT_HANDLER_FACTORY_H_