Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/memory/singleton.h" | |
| 10 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | |
| 11 | |
| 12 class Profile; | |
| 13 | |
| 14 namespace policy { | |
| 15 class ManagedModePolicyProvider; | |
| 16 } | |
| 17 | |
| 18 class ManagedModePolicyProviderFactory : public ProfileKeyedServiceFactory { | |
| 19 public: | |
| 20 static ManagedModePolicyProviderFactory* GetInstance(); | |
| 21 | |
| 22 static policy::ManagedModePolicyProvider* GetForProfile(Profile* profile); | |
| 23 | |
| 24 private: | |
| 25 friend struct DefaultSingletonTraits<ManagedModePolicyProviderFactory>; | |
| 26 | |
| 27 ManagedModePolicyProviderFactory(); | |
| 28 virtual ~ManagedModePolicyProviderFactory(); | |
| 29 | |
| 30 virtual ProfileKeyedService* BuildServiceInstanceFor( | |
| 31 Profile* profile) const OVERRIDE; | |
|
Mattias Nissler (ping if slow)
2012/06/13 04:53:44
DISALLOW_COPY_AND_ASSIGN?
Bernhard Bauer
2012/06/13 14:42:29
Done (I always forget this one).
| |
| 32 }; | |
| 33 | |
| 34 #endif // CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_ | |
| OLD | NEW |