| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Sets |app_id| as the app to auto launch at start up. | 123 // Sets |app_id| as the app to auto launch at start up. |
| 124 void SetAutoLaunchApp(const std::string& app_id); | 124 void SetAutoLaunchApp(const std::string& app_id); |
| 125 | 125 |
| 126 // Returns true if there is a pending auto-launch request. | 126 // Returns true if there is a pending auto-launch request. |
| 127 bool IsAutoLaunchRequested() const; | 127 bool IsAutoLaunchRequested() const; |
| 128 | 128 |
| 129 // Returns true if owner/policy enabled auto launch. | 129 // Returns true if owner/policy enabled auto launch. |
| 130 bool IsAutoLaunchEnabled() const; | 130 bool IsAutoLaunchEnabled() const; |
| 131 | 131 |
| 132 // Returns true if current app was auto launched with zero delay. | |
| 133 bool IsCurrentAppAutoLaunchedWithZeroDelay() const; | |
| 134 | |
| 135 // Enable auto launch setter. | 132 // Enable auto launch setter. |
| 136 void SetEnableAutoLaunch(bool value); | 133 void SetEnableAutoLaunch(bool value); |
| 137 | 134 |
| 138 // Adds/removes a kiosk app by id. When removed, all locally cached data | 135 // Adds/removes a kiosk app by id. When removed, all locally cached data |
| 139 // will be removed as well. | 136 // will be removed as well. |
| 140 void AddApp(const std::string& app_id); | 137 void AddApp(const std::string& app_id); |
| 141 void RemoveApp(const std::string& app_id); | 138 void RemoveApp(const std::string& app_id); |
| 142 | 139 |
| 143 // Gets info of all apps that have no meta data load error. | 140 // Gets info of all apps that have no meta data load error. |
| 144 void GetApps(Apps* apps) const; | 141 void GetApps(Apps* apps) const; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // The extension external loader for installing kiosk app. | 288 // The extension external loader for installing kiosk app. |
| 292 bool external_loader_created_; | 289 bool external_loader_created_; |
| 293 base::WeakPtr<KioskAppExternalLoader> external_loader_; | 290 base::WeakPtr<KioskAppExternalLoader> external_loader_; |
| 294 | 291 |
| 295 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); | 292 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); |
| 296 }; | 293 }; |
| 297 | 294 |
| 298 } // namespace chromeos | 295 } // namespace chromeos |
| 299 | 296 |
| 300 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ | 297 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ |
| OLD | NEW |