| 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_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ | 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 content::RenderViewHost* render_view_host) OVERRIDE; | 188 content::RenderViewHost* render_view_host) OVERRIDE; |
| 189 | 189 |
| 190 // SigninTracker::Observer override. | 190 // SigninTracker::Observer override. |
| 191 virtual void GaiaCredentialsValid() OVERRIDE; | 191 virtual void GaiaCredentialsValid() OVERRIDE; |
| 192 virtual void SigninFailed(const GoogleServiceAuthError& error) OVERRIDE; | 192 virtual void SigninFailed(const GoogleServiceAuthError& error) OVERRIDE; |
| 193 virtual void SigninSuccess() OVERRIDE; | 193 virtual void SigninSuccess() OVERRIDE; |
| 194 | 194 |
| 195 // ProfileSyncServiceObserver. | 195 // ProfileSyncServiceObserver. |
| 196 virtual void OnStateChanged() OVERRIDE; | 196 virtual void OnStateChanged() OVERRIDE; |
| 197 | 197 |
| 198 // Tracks if we are in the process of showing the signin or one click |
| 199 // interstitial page. It's set to true the first time we load one of those |
| 200 // pages and set to false when transient state is cleaned. |
| 201 bool showing_signin_; |
| 202 |
| 198 // Information about the account that has just logged in. | 203 // Information about the account that has just logged in. |
| 199 std::string session_index_; | 204 std::string session_index_; |
| 200 std::string email_; | 205 std::string email_; |
| 201 std::string password_; | 206 std::string password_; |
| 202 AutoAccept auto_accept_; | 207 AutoAccept auto_accept_; |
| 203 SyncPromoUI::Source source_; | 208 SyncPromoUI::Source source_; |
| 209 bool switched_to_advanced_; |
| 210 // When switching to advanced settings, we want to track the original source. |
| 211 SyncPromoUI::Source original_source_; |
| 204 GURL continue_url_; | 212 GURL continue_url_; |
| 205 // Redirect URL after sync setup is complete. | 213 // Redirect URL after sync setup is complete. |
| 206 GURL redirect_url_; | 214 GURL redirect_url_; |
| 207 std::string error_message_; | 215 std::string error_message_; |
| 208 scoped_ptr<SigninTracker> signin_tracker_; | 216 scoped_ptr<SigninTracker> signin_tracker_; |
| 209 | 217 |
| 210 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); | 218 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); |
| 211 }; | 219 }; |
| 212 | 220 |
| 213 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ | 221 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ |
| OLD | NEW |