OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_FACTORY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_FACTORY_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/memory/singleton.h" |
| 11 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 12 |
| 13 class KeyedService; |
| 14 class Profile; |
| 15 |
| 16 namespace chromeos { |
| 17 |
| 18 class OwnerSettingsService; |
| 19 |
| 20 class OwnerSettingsServiceFactory : public BrowserContextKeyedServiceFactory { |
| 21 public: |
| 22 static OwnerSettingsService* GetForProfile(Profile* profile); |
| 23 |
| 24 static OwnerSettingsServiceFactory* GetInstance(); |
| 25 |
| 26 private: |
| 27 friend struct DefaultSingletonTraits<OwnerSettingsServiceFactory>; |
| 28 |
| 29 OwnerSettingsServiceFactory(); |
| 30 virtual ~OwnerSettingsServiceFactory(); |
| 31 |
| 32 static KeyedService* BuildInstanceFor(content::BrowserContext* context); |
| 33 |
| 34 // BrowserContextKeyedBaseFactory overrides: |
| 35 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; |
| 36 |
| 37 // BrowserContextKeyedServiceFactory implementation: |
| 38 virtual KeyedService* BuildServiceInstanceFor( |
| 39 content::BrowserContext* browser_context) const OVERRIDE; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceFactory); |
| 42 }; |
| 43 |
| 44 } // namespace chromeos |
| 45 |
| 46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_FACTORY_H_ |
OLD | NEW |