| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 // Callback for reading handling checks of the owner public. | 206 // Callback for reading handling checks of the owner public. |
| 207 void OnOwnerFileChecked( | 207 void OnOwnerFileChecked( |
| 208 const GetConsumerKioskAutoLaunchStatusCallback& callback, | 208 const GetConsumerKioskAutoLaunchStatusCallback& callback, |
| 209 bool* owner_present); | 209 bool* owner_present); |
| 210 | 210 |
| 211 // Reads/writes auto login state from/to local state. | 211 // Reads/writes auto login state from/to local state. |
| 212 AutoLoginState GetAutoLoginState() const; | 212 AutoLoginState GetAutoLoginState() const; |
| 213 void SetAutoLoginState(AutoLoginState state); | 213 void SetAutoLoginState(AutoLoginState state); |
| 214 | 214 |
| 215 void GetKioskAppCrxCacheDir(base::FilePath* cache_dir); | 215 void GetCrxCacheDir(base::FilePath* cache_dir); |
| 216 |
| 217 bool GetCachedCrx(const std::string& app_id, |
| 218 base::FilePath* file_path, |
| 219 std::string* version); |
| 216 | 220 |
| 217 // True if machine ownership is already established. | 221 // True if machine ownership is already established. |
| 218 bool ownership_established_; | 222 bool ownership_established_; |
| 219 ScopedVector<KioskAppData> apps_; | 223 ScopedVector<KioskAppData> apps_; |
| 220 std::string auto_launch_app_id_; | 224 std::string auto_launch_app_id_; |
| 221 ObserverList<KioskAppManagerObserver, true> observers_; | 225 ObserverList<KioskAppManagerObserver, true> observers_; |
| 222 | 226 |
| 223 scoped_ptr<CrosSettings::ObserverSubscription> | 227 scoped_ptr<CrosSettings::ObserverSubscription> |
| 224 local_accounts_subscription_; | 228 local_accounts_subscription_; |
| 225 scoped_ptr<CrosSettings::ObserverSubscription> | 229 scoped_ptr<CrosSettings::ObserverSubscription> |
| 226 local_account_auto_login_id_subscription_; | 230 local_account_auto_login_id_subscription_; |
| 227 | 231 |
| 228 scoped_ptr<ExternalCache> external_cache_; | 232 scoped_ptr<ExternalCache> external_cache_; |
| 229 | 233 |
| 230 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); | 234 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); |
| 231 }; | 235 }; |
| 232 | 236 |
| 233 } // namespace chromeos | 237 } // namespace chromeos |
| 234 | 238 |
| 235 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ | 239 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ |
| OLD | NEW |