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_SYNC_SETUP_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/signin/signin_tracker.h" | 10 #include "chrome/browser/signin/signin_tracker.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // error UI. | 114 // error UI. |
115 void DisplayGaiaLogin(bool fatal_error); | 115 void DisplayGaiaLogin(bool fatal_error); |
116 | 116 |
117 // Displays the GAIA login form with a custom error message (used for errors | 117 // Displays the GAIA login form with a custom error message (used for errors |
118 // like "email address already in use by another profile"). No message | 118 // like "email address already in use by another profile"). No message |
119 // displayed if |error_message| is empty. Displays fatal error UI if | 119 // displayed if |error_message| is empty. Displays fatal error UI if |
120 // |fatal_error| = true. | 120 // |fatal_error| = true. |
121 void DisplayGaiaLoginWithErrorMessage(const string16& error_message, | 121 void DisplayGaiaLoginWithErrorMessage(const string16& error_message, |
122 bool fatal_error); | 122 bool fatal_error); |
123 | 123 |
| 124 // Instead of siging in, prepare requirements for showing the advanced |
| 125 // configuration dialog. |
| 126 void PrepareConfigDialog(); |
| 127 |
| 128 // Displays spinner-only UI indicating that something is going on in the |
| 129 // background. |
| 130 // TODO(kochi): better to show some message that the user can understand what |
| 131 // is running in the background. |
| 132 void DisplaySpinner(); |
| 133 |
124 // Returns true if we're the active login object. | 134 // Returns true if we're the active login object. |
125 bool IsActiveLogin() const; | 135 bool IsActiveLogin() const; |
126 | 136 |
127 // Initiates a login via the signin manager. | 137 // Initiates a login via the signin manager. |
128 void TryLogin(const std::string& username, | 138 void TryLogin(const std::string& username, |
129 const std::string& password, | 139 const std::string& password, |
130 const std::string& captcha, | 140 const std::string& captcha, |
131 const std::string& access_code); | 141 const std::string& access_code); |
132 | 142 |
133 // If a wizard already exists, focus it and return true. | 143 // If a wizard already exists, focus it and return true. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // Cache of the last name the client attempted to authenticate. | 175 // Cache of the last name the client attempted to authenticate. |
166 std::string last_attempted_user_email_; | 176 std::string last_attempted_user_email_; |
167 | 177 |
168 // The error from the last signin attempt. | 178 // The error from the last signin attempt. |
169 GoogleServiceAuthError last_signin_error_; | 179 GoogleServiceAuthError last_signin_error_; |
170 | 180 |
171 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); | 181 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); |
172 }; | 182 }; |
173 | 183 |
174 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ | 184 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
OLD | NEW |