| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOGIN_LOGIN_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 virtual ~LoginUtils() {} | 54 virtual ~LoginUtils() {} |
| 55 | 55 |
| 56 // Thin wrapper around StartupBrowserCreator::LaunchBrowser(). Meant to be | 56 // Thin wrapper around StartupBrowserCreator::LaunchBrowser(). Meant to be |
| 57 // used in a Task posted to the UI thread. Once the browser is launched the | 57 // used in a Task posted to the UI thread. Once the browser is launched the |
| 58 // login host is deleted. | 58 // login host is deleted. |
| 59 virtual void DoBrowserLaunch(Profile* profile, | 59 virtual void DoBrowserLaunch(Profile* profile, |
| 60 LoginDisplayHost* login_host) = 0; | 60 LoginDisplayHost* login_host) = 0; |
| 61 | 61 |
| 62 // Loads and prepares profile for the session. Fires |delegate| in the end. | 62 // Loads and prepares profile for the session. Fires |delegate| in the end. |
| 63 // If |pending_requests| is true, there's a pending online auth request. | |
| 64 // If |display_email| is not empty, user's displayed email will be set to | 63 // If |display_email| is not empty, user's displayed email will be set to |
| 65 // this value, shown in UI. | 64 // this value, shown in UI. |
| 66 // |user_context.username_hash| defines when user homedir is mounted. | 65 // |user_context.username_hash| defines when user homedir is mounted. |
| 67 // Also see DelegateDeleted method. | 66 // Also see DelegateDeleted method. |
| 68 // If |has_active_session| is true than this is a case of restoring user | 67 // If |has_active_session| is true than this is a case of restoring user |
| 69 // session after browser crash so no need to start new session. | 68 // session after browser crash so no need to start new session. |
| 70 virtual void PrepareProfile( | 69 virtual void PrepareProfile( |
| 71 const UserContext& user_context, | 70 const UserContext& user_context, |
| 72 const std::string& display_email, | 71 const std::string& display_email, |
| 73 bool has_cookies, | 72 bool has_cookies, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 101 // Restores authentication session after crash. | 100 // Restores authentication session after crash. |
| 102 virtual void RestoreAuthenticationSession(Profile* profile) = 0; | 101 virtual void RestoreAuthenticationSession(Profile* profile) = 0; |
| 103 | 102 |
| 104 // Initialize RLZ. | 103 // Initialize RLZ. |
| 105 virtual void InitRlzDelayed(Profile* user_profile) = 0; | 104 virtual void InitRlzDelayed(Profile* user_profile) = 0; |
| 106 }; | 105 }; |
| 107 | 106 |
| 108 } // namespace chromeos | 107 } // namespace chromeos |
| 109 | 108 |
| 110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| OLD | NEW |