1f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
2f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
3f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// found in the LICENSE file.
4f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
5f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)#ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_FACTORY_H_
6f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)#define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_FACTORY_H_
7f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
8f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)#include "base/memory/singleton.h"
9f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)#include "chrome/browser/supervised_user/supervised_users.h"
10f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
11f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
12f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)class Profile;
13f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)class SupervisedUserSettingsService;
14f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
15f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)class SupervisedUserSettingsServiceFactory
16f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)    : public BrowserContextKeyedServiceFactory {
17f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles) public:
18f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)  static SupervisedUserSettingsService* GetForProfile(Profile* profile);
19f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
20f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)  static SupervisedUserSettingsServiceFactory* GetInstance();
21f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
22f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles) private:
23f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)  friend struct DefaultSingletonTraits<SupervisedUserSettingsServiceFactory>;
24f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
25f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)  SupervisedUserSettingsServiceFactory();
26f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)  virtual ~SupervisedUserSettingsServiceFactory();
27f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
28f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)  // BrowserContextKeyedServiceFactory:
29f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)  virtual KeyedService* BuildServiceInstanceFor(
30f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)      content::BrowserContext* profile) const OVERRIDE;
31f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)  virtual content::BrowserContext* GetBrowserContextToUse(
32f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)      content::BrowserContext* context) const OVERRIDE;
33f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)};
34f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
35f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)#endif  // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_FACTORY_H_
36