| 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 <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 void RemoveApp(const std::string& app_id, | 149 void RemoveApp(const std::string& app_id, |
| 150 OwnerSettingsServiceChromeOS* service); | 150 OwnerSettingsServiceChromeOS* service); |
| 151 | 151 |
| 152 // Gets info of all apps that have no meta data load error. | 152 // Gets info of all apps that have no meta data load error. |
| 153 void GetApps(Apps* apps) const; | 153 void GetApps(Apps* apps) const; |
| 154 | 154 |
| 155 // Gets app data for the given app id. Returns true if |app_id| is known and | 155 // Gets app data for the given app id. Returns true if |app_id| is known and |
| 156 // |app| is populated. Otherwise, return false. | 156 // |app| is populated. Otherwise, return false. |
| 157 bool GetApp(const std::string& app_id, App* app) const; | 157 bool GetApp(const std::string& app_id, App* app) const; |
| 158 | 158 |
| 159 // Gets app data for the given account id. Returns true if |account_id| is |
| 160 // known and |app| is populated. |
| 161 bool GetAppByAccountId(const AccountId& account_id, App* app) const; |
| 162 |
| 159 // Gets whether the bailout shortcut is disabled. | 163 // Gets whether the bailout shortcut is disabled. |
| 160 bool GetDisableBailoutShortcut() const; | 164 bool GetDisableBailoutShortcut() const; |
| 161 | 165 |
| 162 // Clears locally cached app data. | 166 // Clears locally cached app data. |
| 163 void ClearAppData(const std::string& app_id); | 167 void ClearAppData(const std::string& app_id); |
| 164 | 168 |
| 165 // Updates app data from the |app| in |profile|. |app| is provided to cover | 169 // Updates app data from the |app| in |profile|. |app| is provided to cover |
| 166 // the case of app update case where |app| is the new version and is not | 170 // the case of app update case where |app| is the new version and is not |
| 167 // finished installing (e.g. because old version is still running). Otherwise, | 171 // finished installing (e.g. because old version is still running). Otherwise, |
| 168 // |app| could be NULL and the current installed app in |profile| will be | 172 // |app| could be NULL and the current installed app in |profile| will be |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 base::WeakPtr<KioskAppExternalLoader> secondary_app_external_loader_; | 335 base::WeakPtr<KioskAppExternalLoader> secondary_app_external_loader_; |
| 332 | 336 |
| 333 scoped_ptr<AppSession> app_session_; | 337 scoped_ptr<AppSession> app_session_; |
| 334 | 338 |
| 335 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); | 339 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); |
| 336 }; | 340 }; |
| 337 | 341 |
| 338 } // namespace chromeos | 342 } // namespace chromeos |
| 339 | 343 |
| 340 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ | 344 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ |
| OLD | NEW |