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_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // If not, we make a new popup dialog window, and set it to | 78 // If not, we make a new popup dialog window, and set it to |
79 // chrome://signin to ask the user to sign in to chrome. | 79 // chrome://signin to ask the user to sign in to chrome. |
80 void ShowLoginPopup(); | 80 void ShowLoginPopup(); |
81 | 81 |
82 // Displays login results. | 82 // Displays login results. |
83 void DisplayLoginResult(Browser* browser, const base::string16& message); | 83 void DisplayLoginResult(Browser* browser, const base::string16& message); |
84 | 84 |
85 // Gets the last login result set through |DisplayLoginResult|. | 85 // Gets the last login result set through |DisplayLoginResult|. |
86 const base::string16& GetLastLoginResult(); | 86 const base::string16& GetLastLoginResult(); |
87 | 87 |
| 88 // Gets the last email used for signing in when a signin error occured; set |
| 89 // through |DisplayLoginResult|. |
| 90 const base::string16& GetLastLoginErrorEmail(); |
| 91 |
88 private: | 92 private: |
89 // Weak pointers to the recently opened UIs, with the most recent in front. | 93 // Weak pointers to the recently opened UIs, with the most recent in front. |
90 std::list<LoginUI*> ui_list_; | 94 std::list<LoginUI*> ui_list_; |
91 #if !defined(OS_CHROMEOS) | 95 #if !defined(OS_CHROMEOS) |
92 Profile* profile_; | 96 Profile* profile_; |
93 #endif | 97 #endif |
94 | 98 |
95 // List of observers. | 99 // List of observers. |
96 base::ObserverList<Observer> observer_list_; | 100 base::ObserverList<Observer> observer_list_; |
97 | 101 |
98 base::string16 last_login_result_; | 102 base::string16 last_login_result_; |
| 103 base::string16 last_login_error_email_; |
99 | 104 |
100 DISALLOW_COPY_AND_ASSIGN(LoginUIService); | 105 DISALLOW_COPY_AND_ASSIGN(LoginUIService); |
101 }; | 106 }; |
102 | 107 |
103 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ | 108 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ |
OLD | NEW |