| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 class KioskAppUpdateServiceFactory : public BrowserContextKeyedServiceFactory { | 80 class KioskAppUpdateServiceFactory : public BrowserContextKeyedServiceFactory { |
| 81 public: | 81 public: |
| 82 // Returns the KioskAppUpdateService for |profile|, creating it if it is not | 82 // Returns the KioskAppUpdateService for |profile|, creating it if it is not |
| 83 // yet created. | 83 // yet created. |
| 84 static KioskAppUpdateService* GetForProfile(Profile* profile); | 84 static KioskAppUpdateService* GetForProfile(Profile* profile); |
| 85 | 85 |
| 86 // Returns the KioskAppUpdateServiceFactory instance. | 86 // Returns the KioskAppUpdateServiceFactory instance. |
| 87 static KioskAppUpdateServiceFactory* GetInstance(); | 87 static KioskAppUpdateServiceFactory* GetInstance(); |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 friend struct DefaultSingletonTraits<KioskAppUpdateServiceFactory>; | 90 friend struct base::DefaultSingletonTraits<KioskAppUpdateServiceFactory>; |
| 91 | 91 |
| 92 KioskAppUpdateServiceFactory(); | 92 KioskAppUpdateServiceFactory(); |
| 93 ~KioskAppUpdateServiceFactory() override; | 93 ~KioskAppUpdateServiceFactory() override; |
| 94 | 94 |
| 95 // BrowserContextKeyedServiceFactory overrides: | 95 // BrowserContextKeyedServiceFactory overrides: |
| 96 KeyedService* BuildServiceInstanceFor( | 96 KeyedService* BuildServiceInstanceFor( |
| 97 content::BrowserContext* profile) const override; | 97 content::BrowserContext* profile) const override; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace chromeos | 100 } // namespace chromeos |
| 101 | 101 |
| 102 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_SERVICE_H_ | 102 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_SERVICE_H_ |
| OLD | NEW |