| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "chrome/browser/chromeos/app_mode/kiosk_app_data_delegate.h" | 18 #include "chrome/browser/chromeos/app_mode/kiosk_app_data_delegate.h" |
| 19 #include "chrome/browser/chromeos/extensions/external_cache.h" | 19 #include "chrome/browser/chromeos/extensions/external_cache.h" |
| 20 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" | |
| 21 #include "chrome/browser/chromeos/settings/cros_settings.h" | 20 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 21 #include "chrome/browser/chromeos/settings/install_attributes.h" |
| 22 #include "components/signin/core/account_id/account_id.h" | 22 #include "components/signin/core/account_id/account_id.h" |
| 23 #include "ui/gfx/image/image_skia.h" | 23 #include "ui/gfx/image/image_skia.h" |
| 24 | 24 |
| 25 class GURL; | 25 class GURL; |
| 26 class PrefRegistrySimple; | 26 class PrefRegistrySimple; |
| 27 class Profile; | 27 class Profile; |
| 28 | 28 |
| 29 namespace base { | 29 namespace base { |
| 30 class RefCountedString; | 30 class RefCountedString; |
| 31 } | 31 } |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 void OnKioskAppDataChanged(const std::string& app_id) override; | 287 void OnKioskAppDataChanged(const std::string& app_id) override; |
| 288 void OnKioskAppDataLoadFailure(const std::string& app_id) override; | 288 void OnKioskAppDataLoadFailure(const std::string& app_id) override; |
| 289 | 289 |
| 290 // ExternalCache::Delegate: | 290 // ExternalCache::Delegate: |
| 291 void OnExtensionListsUpdated(const base::DictionaryValue* prefs) override; | 291 void OnExtensionListsUpdated(const base::DictionaryValue* prefs) override; |
| 292 void OnExtensionLoadedInCache(const std::string& id) override; | 292 void OnExtensionLoadedInCache(const std::string& id) override; |
| 293 void OnExtensionDownloadFailed( | 293 void OnExtensionDownloadFailed( |
| 294 const std::string& id, | 294 const std::string& id, |
| 295 extensions::ExtensionDownloaderDelegate::Error error) override; | 295 extensions::ExtensionDownloaderDelegate::Error error) override; |
| 296 | 296 |
| 297 // Callback for EnterpriseInstallAttributes::LockDevice() during | 297 // Callback for InstallAttributes::LockDevice() during |
| 298 // EnableConsumerModeKiosk() call. | 298 // EnableConsumerModeKiosk() call. |
| 299 void OnLockDevice( | 299 void OnLockDevice(const EnableKioskAutoLaunchCallback& callback, |
| 300 const EnableKioskAutoLaunchCallback& callback, | 300 InstallAttributes::LockResult result); |
| 301 policy::EnterpriseInstallAttributes::LockResult result); | |
| 302 | 301 |
| 303 // Callback for EnterpriseInstallAttributes::ReadImmutableAttributes() during | 302 // Callback for InstallAttributes::ReadImmutableAttributes() during |
| 304 // GetConsumerKioskModeStatus() call. | 303 // GetConsumerKioskModeStatus() call. |
| 305 void OnReadImmutableAttributes( | 304 void OnReadImmutableAttributes( |
| 306 const GetConsumerKioskAutoLaunchStatusCallback& callback); | 305 const GetConsumerKioskAutoLaunchStatusCallback& callback); |
| 307 | 306 |
| 308 // Callback for reading handling checks of the owner public. | 307 // Callback for reading handling checks of the owner public. |
| 309 void OnOwnerFileChecked( | 308 void OnOwnerFileChecked( |
| 310 const GetConsumerKioskAutoLaunchStatusCallback& callback, | 309 const GetConsumerKioskAutoLaunchStatusCallback& callback, |
| 311 bool* owner_present); | 310 bool* owner_present); |
| 312 | 311 |
| 313 // Reads/writes auto login state from/to local state. | 312 // Reads/writes auto login state from/to local state. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 base::WeakPtr<KioskAppExternalLoader> secondary_app_external_loader_; | 344 base::WeakPtr<KioskAppExternalLoader> secondary_app_external_loader_; |
| 346 | 345 |
| 347 std::unique_ptr<AppSession> app_session_; | 346 std::unique_ptr<AppSession> app_session_; |
| 348 | 347 |
| 349 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); | 348 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); |
| 350 }; | 349 }; |
| 351 | 350 |
| 352 } // namespace chromeos | 351 } // namespace chromeos |
| 353 | 352 |
| 354 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ | 353 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ |
| OLD | NEW |