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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 virtual ~LoginUtils() {} | 55 virtual ~LoginUtils() {} |
56 | 56 |
57 // Thin wrapper around StartupBrowserCreator::LaunchBrowser(). Meant to be | 57 // Thin wrapper around StartupBrowserCreator::LaunchBrowser(). Meant to be |
58 // used in a Task posted to the UI thread. Once the browser is launched the | 58 // used in a Task posted to the UI thread. Once the browser is launched the |
59 // login host is deleted. | 59 // login host is deleted. |
60 virtual void DoBrowserLaunch(Profile* profile, | 60 virtual void DoBrowserLaunch(Profile* profile, |
61 LoginDisplayHost* login_host) = 0; | 61 LoginDisplayHost* login_host) = 0; |
62 | 62 |
63 // Loads and prepares profile for the session. Fires |delegate| in the end. | 63 // Loads and prepares profile for the session. Fires |delegate| in the end. |
64 // If |pending_requests| is true, there's a pending online auth request. | |
65 // If |display_email| is not empty, user's displayed email will be set to | 64 // If |display_email| is not empty, user's displayed email will be set to |
66 // this value, shown in UI. | 65 // this value, shown in UI. |
67 // |user_context.username_hash| defines when user homedir is mounted. | 66 // |user_context.username_hash| defines when user homedir is mounted. |
68 // Also see DelegateDeleted method. | 67 // Also see DelegateDeleted method. |
69 // If |has_active_session| is true than this is a case of restoring user | 68 // If |has_active_session| is true than this is a case of restoring user |
70 // session after browser crash so no need to start new session. | 69 // session after browser crash so no need to start new session. |
71 virtual void PrepareProfile( | 70 virtual void PrepareProfile( |
72 const UserContext& user_context, | 71 const UserContext& user_context, |
73 const std::string& display_email, | 72 const std::string& display_email, |
74 bool has_cookies, | 73 bool has_cookies, |
(...skipping 30 matching lines...) Expand all Loading... |
105 // Initialize RLZ. | 104 // Initialize RLZ. |
106 virtual void InitRlzDelayed(Profile* user_profile) = 0; | 105 virtual void InitRlzDelayed(Profile* user_profile) = 0; |
107 | 106 |
108 // Initiates process of starting CertLoader for the user_profile. | 107 // Initiates process of starting CertLoader for the user_profile. |
109 virtual void StartCertLoader(Profile* user_profile) = 0; | 108 virtual void StartCertLoader(Profile* user_profile) = 0; |
110 }; | 109 }; |
111 | 110 |
112 } // namespace chromeos | 111 } // namespace chromeos |
113 | 112 |
114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 113 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
OLD | NEW |