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