| 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_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 namespace extensions { | 30 namespace extensions { |
| 31 class Extension; | 31 class Extension; |
| 32 class ExternalLoader; | 32 class ExternalLoader; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace chromeos { | 35 namespace chromeos { |
| 36 | 36 |
| 37 class KioskAppData; | 37 class KioskAppData; |
| 38 class KioskAppExternalLoader; | 38 class KioskAppExternalLoader; |
| 39 class KioskAppManagerObserver; | 39 class KioskAppManagerObserver; |
| 40 |
| 41 #if !defined(USE_ATHENA) |
| 40 class KioskExternalUpdater; | 42 class KioskExternalUpdater; |
| 43 #endif |
| 41 | 44 |
| 42 // KioskAppManager manages cached app data. | 45 // KioskAppManager manages cached app data. |
| 43 class KioskAppManager : public KioskAppDataDelegate, | 46 class KioskAppManager : public KioskAppDataDelegate, |
| 44 public ExternalCache::Delegate { | 47 public ExternalCache::Delegate { |
| 45 public: | 48 public: |
| 46 enum ConsumerKioskAutoLaunchStatus { | 49 enum ConsumerKioskAutoLaunchStatus { |
| 47 // Consumer kiosk mode auto-launch feature can be enabled on this machine. | 50 // Consumer kiosk mode auto-launch feature can be enabled on this machine. |
| 48 CONSUMER_KIOSK_AUTO_LAUNCH_CONFIGURABLE, | 51 CONSUMER_KIOSK_AUTO_LAUNCH_CONFIGURABLE, |
| 49 // Consumer kiosk auto-launch feature is enabled on this machine. | 52 // Consumer kiosk auto-launch feature is enabled on this machine. |
| 50 CONSUMER_KIOSK_AUTO_LAUNCH_ENABLED, | 53 CONSUMER_KIOSK_AUTO_LAUNCH_ENABLED, |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 ScopedVector<KioskAppData> apps_; | 270 ScopedVector<KioskAppData> apps_; |
| 268 std::string auto_launch_app_id_; | 271 std::string auto_launch_app_id_; |
| 269 ObserverList<KioskAppManagerObserver, true> observers_; | 272 ObserverList<KioskAppManagerObserver, true> observers_; |
| 270 | 273 |
| 271 scoped_ptr<CrosSettings::ObserverSubscription> | 274 scoped_ptr<CrosSettings::ObserverSubscription> |
| 272 local_accounts_subscription_; | 275 local_accounts_subscription_; |
| 273 scoped_ptr<CrosSettings::ObserverSubscription> | 276 scoped_ptr<CrosSettings::ObserverSubscription> |
| 274 local_account_auto_login_id_subscription_; | 277 local_account_auto_login_id_subscription_; |
| 275 | 278 |
| 276 scoped_ptr<ExternalCache> external_cache_; | 279 scoped_ptr<ExternalCache> external_cache_; |
| 280 |
| 281 #if !defined(USE_ATHENA) |
| 277 scoped_ptr<KioskExternalUpdater> usb_stick_updater_; | 282 scoped_ptr<KioskExternalUpdater> usb_stick_updater_; |
| 283 #endif |
| 278 | 284 |
| 279 // The extension external loader for installing kiosk app. | 285 // The extension external loader for installing kiosk app. |
| 280 bool external_loader_created_; | 286 bool external_loader_created_; |
| 281 base::WeakPtr<KioskAppExternalLoader> external_loader_; | 287 base::WeakPtr<KioskAppExternalLoader> external_loader_; |
| 282 | 288 |
| 283 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); | 289 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); |
| 284 }; | 290 }; |
| 285 | 291 |
| 286 } // namespace chromeos | 292 } // namespace chromeos |
| 287 | 293 |
| 288 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ | 294 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ |
| OLD | NEW |