| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 static void ShowInfoBarUIThread(const std::string& session_index, | 178 static void ShowInfoBarUIThread(const std::string& session_index, |
| 179 const std::string& email, | 179 const std::string& email, |
| 180 AutoAccept auto_accept, | 180 AutoAccept auto_accept, |
| 181 SyncPromoUI::Source source, | 181 SyncPromoUI::Source source, |
| 182 const GURL& continue_url, | 182 const GURL& continue_url, |
| 183 int child_id, | 183 int child_id, |
| 184 int route_id); | 184 int route_id); |
| 185 | 185 |
| 186 void RedirectToNtpOrAppsPage(bool show_bubble); | 186 void RedirectToNtpOrAppsPage(bool show_bubble); |
| 187 void RedirectToSignin(); | 187 void RedirectToSignin(); |
| 188 void RedirectOnSigninComplete(bool show_bubble); | 188 void ShowSyncConfirmationBubble(bool show_bubble); |
| 189 | 189 |
| 190 // Clear all data member of the helper, except for the error. | 190 // Clear all data member of the helper, except for the error. |
| 191 void CleanTransientState(); | 191 void CleanTransientState(); |
| 192 | 192 |
| 193 // Grab Gaia password if available. | 193 // Grab Gaia password if available. |
| 194 bool OnFormSubmitted(const content::PasswordForm& form); | 194 bool OnFormSubmitted(const content::PasswordForm& form); |
| 195 | 195 |
| 196 // content::WebContentsObserver overrides. | 196 // content::WebContentsObserver overrides. |
| 197 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 197 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 198 virtual void NavigateToPendingEntry( | 198 virtual void NavigateToPendingEntry( |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 // Whether a Gaia URL during the sign in process was not handled by the | 239 // Whether a Gaia URL during the sign in process was not handled by the |
| 240 // dedicated sign in process. This is set to false if at least one such | 240 // dedicated sign in process. This is set to false if at least one such |
| 241 // URL is detected. | 241 // URL is detected. |
| 242 bool is_trusted_; | 242 bool is_trusted_; |
| 243 | 243 |
| 244 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); | 244 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ | 247 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ |
| OLD | NEW |