| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 static void ShowInfoBarUIThread(const std::string& session_index, | 184 static void ShowInfoBarUIThread(const std::string& session_index, |
| 185 const std::string& email, | 185 const std::string& email, |
| 186 AutoAccept auto_accept, | 186 AutoAccept auto_accept, |
| 187 SyncPromoUI::Source source, | 187 SyncPromoUI::Source source, |
| 188 const GURL& continue_url, | 188 const GURL& continue_url, |
| 189 int child_id, | 189 int child_id, |
| 190 int route_id); | 190 int route_id); |
| 191 | 191 |
| 192 void RedirectToNtpOrAppsPage(); | 192 void RedirectToNtpOrAppsPage(); |
| 193 void RedirectToSignin(); | 193 void RedirectToSignin(); |
| 194 |
| 195 // If the current sign in is not from settings page/webstore, shows the |
| 196 // NTP/Apps page. |
| 197 void RedirectToNtpOrAppsPageIfNecessary(); |
| 198 |
| 194 void ShowSigninErrorBubble(Browser* browser, const std::string& error); | 199 void ShowSigninErrorBubble(Browser* browser, const std::string& error); |
| 195 | 200 |
| 196 // Clear all data member of the helper, except for the error. | 201 // Clear all data member of the helper, except for the error. |
| 197 void CleanTransientState(); | 202 void CleanTransientState(); |
| 198 | 203 |
| 199 // Grab Gaia password if available. | 204 // Grab Gaia password if available. |
| 200 bool OnFormSubmitted(const content::PasswordForm& form); | 205 bool OnFormSubmitted(const content::PasswordForm& form); |
| 201 | 206 |
| 202 // content::WebContentsObserver overrides. | 207 // content::WebContentsObserver overrides. |
| 203 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 208 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // Whether a Gaia URL during the sign in process was not handled by the | 244 // Whether a Gaia URL during the sign in process was not handled by the |
| 240 // dedicated sign in process (e.g. SAML login, which redirects to a | 245 // dedicated sign in process (e.g. SAML login, which redirects to a |
| 241 // non-google-controlled domain). | 246 // non-google-controlled domain). |
| 242 // This is set to true if at least one such URL is detected. | 247 // This is set to true if at least one such URL is detected. |
| 243 bool untrusted_confirmation_required_; | 248 bool untrusted_confirmation_required_; |
| 244 | 249 |
| 245 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); | 250 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); |
| 246 }; | 251 }; |
| 247 | 252 |
| 248 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ | 253 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ |
| OLD | NEW |