| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 KioskAppManager(); | 112 KioskAppManager(); |
| 113 virtual ~KioskAppManager(); | 113 virtual ~KioskAppManager(); |
| 114 | 114 |
| 115 // Stop all data loading and remove its dependency on CrosSettings. | 115 // Stop all data loading and remove its dependency on CrosSettings. |
| 116 void CleanUp(); | 116 void CleanUp(); |
| 117 | 117 |
| 118 // Gets KioskAppData for the given app id. | 118 // Gets KioskAppData for the given app id. |
| 119 const KioskAppData* GetAppData(const std::string& app_id) const; | 119 const KioskAppData* GetAppData(const std::string& app_id) const; |
| 120 | 120 |
| 121 // Update app data |apps_| based on |prefs_|. | 121 // Update app data |apps_| based on CrosSettings. |
| 122 void UpdateAppData(); | 122 void UpdateAppData(); |
| 123 | 123 |
| 124 // content::NotificationObserver overrides: | 124 // content::NotificationObserver overrides: |
| 125 virtual void Observe(int type, | 125 virtual void Observe(int type, |
| 126 const content::NotificationSource& source, | 126 const content::NotificationSource& source, |
| 127 const content::NotificationDetails& details) OVERRIDE; | 127 const content::NotificationDetails& details) OVERRIDE; |
| 128 | 128 |
| 129 // KioskAppDataDelegate overrides: | 129 // KioskAppDataDelegate overrides: |
| 130 virtual void GetKioskAppIconCacheDir(base::FilePath* cache_dir) OVERRIDE; | 130 virtual void GetKioskAppIconCacheDir(base::FilePath* cache_dir) OVERRIDE; |
| 131 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; | 131 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; |
| 132 virtual void OnKioskAppDataLoadFailure(const std::string& app_id) OVERRIDE; | 132 virtual void OnKioskAppDataLoadFailure(const std::string& app_id) OVERRIDE; |
| 133 | 133 |
| 134 ScopedVector<KioskAppData> apps_; | 134 ScopedVector<KioskAppData> apps_; |
| 135 std::string auto_launch_app_id_; | 135 std::string auto_launch_app_id_; |
| 136 ObserverList<KioskAppManagerObserver, true> observers_; | 136 ObserverList<KioskAppManagerObserver, true> observers_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); | 138 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace chromeos | 141 } // namespace chromeos |
| 142 | 142 |
| 143 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ | 143 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ |
| OLD | NEW |