| 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_PROFILE_LOADER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_PROFILE_LOADER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_PROFILE_LOADER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_PROFILE_LOADER_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/callback.h" | 11 #include "base/callback.h" |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h" | 13 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h" |
| 14 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 14 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
| 15 #include "chromeos/login/auth/login_performer.h" | 15 #include "chromeos/login/auth/login_performer.h" |
| 16 #include "components/signin/core/account_id/account_id.h" | 16 #include "components/signin/core/account_id/account_id.h" |
| 17 | 17 |
| 18 class Profile; | 18 class Profile; |
| 19 | 19 |
| 20 namespace chromeos { | 20 namespace chromeos { |
| 21 | 21 |
| 22 // KioskProfileLoader loads a special profile for a given app. It first | 22 // KioskProfileLoader loads a special profile for a given app. It first |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void WhiteListCheckFailed(const std::string& email) override; | 55 void WhiteListCheckFailed(const std::string& email) override; |
| 56 void PolicyLoadFailed() override; | 56 void PolicyLoadFailed() override; |
| 57 void SetAuthFlowOffline(bool offline) override; | 57 void SetAuthFlowOffline(bool offline) override; |
| 58 | 58 |
| 59 // UserSessionManagerDelegate implementation: | 59 // UserSessionManagerDelegate implementation: |
| 60 void OnProfilePrepared(Profile* profile, bool browser_launched) override; | 60 void OnProfilePrepared(Profile* profile, bool browser_launched) override; |
| 61 | 61 |
| 62 const AccountId account_id_; | 62 const AccountId account_id_; |
| 63 bool use_guest_mount_; | 63 bool use_guest_mount_; |
| 64 Delegate* delegate_; | 64 Delegate* delegate_; |
| 65 scoped_ptr<CryptohomedChecker> cryptohomed_checker_; | 65 std::unique_ptr<CryptohomedChecker> cryptohomed_checker_; |
| 66 scoped_ptr<LoginPerformer> login_performer_; | 66 std::unique_ptr<LoginPerformer> login_performer_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(KioskProfileLoader); | 68 DISALLOW_COPY_AND_ASSIGN(KioskProfileLoader); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace chromeos | 71 } // namespace chromeos |
| 72 | 72 |
| 73 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_PROFILE_LOADER_H_ | 73 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_PROFILE_LOADER_H_ |
| OLD | NEW |