| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 void CleanUp(); | 220 void CleanUp(); |
| 221 | 221 |
| 222 // Gets KioskAppData for the given app id. | 222 // Gets KioskAppData for the given app id. |
| 223 const KioskAppData* GetAppData(const std::string& app_id) const; | 223 const KioskAppData* GetAppData(const std::string& app_id) const; |
| 224 KioskAppData* GetAppDataMutable(const std::string& app_id); | 224 KioskAppData* GetAppDataMutable(const std::string& app_id); |
| 225 | 225 |
| 226 // Updates app data |apps_| based on CrosSettings. | 226 // Updates app data |apps_| based on CrosSettings. |
| 227 void UpdateAppData(); | 227 void UpdateAppData(); |
| 228 | 228 |
| 229 // KioskAppDataDelegate overrides: | 229 // KioskAppDataDelegate overrides: |
| 230 virtual void GetKioskAppIconCacheDir(base::FilePath* cache_dir) OVERRIDE; | 230 virtual void GetKioskAppIconCacheDir(base::FilePath* cache_dir) override; |
| 231 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; | 231 virtual void OnKioskAppDataChanged(const std::string& app_id) override; |
| 232 virtual void OnKioskAppDataLoadFailure(const std::string& app_id) OVERRIDE; | 232 virtual void OnKioskAppDataLoadFailure(const std::string& app_id) override; |
| 233 | 233 |
| 234 // ExternalCache::Delegate: | 234 // ExternalCache::Delegate: |
| 235 virtual void OnExtensionListsUpdated( | 235 virtual void OnExtensionListsUpdated( |
| 236 const base::DictionaryValue* prefs) OVERRIDE; | 236 const base::DictionaryValue* prefs) override; |
| 237 virtual void OnExtensionLoadedInCache(const std::string& id) OVERRIDE; | 237 virtual void OnExtensionLoadedInCache(const std::string& id) override; |
| 238 virtual void OnExtensionDownloadFailed( | 238 virtual void OnExtensionDownloadFailed( |
| 239 const std::string& id, | 239 const std::string& id, |
| 240 extensions::ExtensionDownloaderDelegate::Error error) OVERRIDE; | 240 extensions::ExtensionDownloaderDelegate::Error error) override; |
| 241 | 241 |
| 242 // Callback for EnterpriseInstallAttributes::LockDevice() during | 242 // Callback for EnterpriseInstallAttributes::LockDevice() during |
| 243 // EnableConsumerModeKiosk() call. | 243 // EnableConsumerModeKiosk() call. |
| 244 void OnLockDevice( | 244 void OnLockDevice( |
| 245 const EnableKioskAutoLaunchCallback& callback, | 245 const EnableKioskAutoLaunchCallback& callback, |
| 246 policy::EnterpriseInstallAttributes::LockResult result); | 246 policy::EnterpriseInstallAttributes::LockResult result); |
| 247 | 247 |
| 248 // Callback for EnterpriseInstallAttributes::ReadImmutableAttributes() during | 248 // Callback for EnterpriseInstallAttributes::ReadImmutableAttributes() during |
| 249 // GetConsumerKioskModeStatus() call. | 249 // GetConsumerKioskModeStatus() call. |
| 250 void OnReadImmutableAttributes( | 250 void OnReadImmutableAttributes( |
| (...skipping 28 matching lines...) Expand all Loading... |
| 279 // The extension external loader for installing kiosk app. | 279 // The extension external loader for installing kiosk app. |
| 280 bool external_loader_created_; | 280 bool external_loader_created_; |
| 281 base::WeakPtr<KioskAppExternalLoader> external_loader_; | 281 base::WeakPtr<KioskAppExternalLoader> external_loader_; |
| 282 | 282 |
| 283 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); | 283 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); |
| 284 }; | 284 }; |
| 285 | 285 |
| 286 } // namespace chromeos | 286 } // namespace chromeos |
| 287 | 287 |
| 288 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ | 288 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ |
| OLD | NEW |