| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 // content::WebContentsObserver overrides. | 329 // content::WebContentsObserver overrides. |
| 330 void DidStartNavigationToPendingEntry( | 330 void DidStartNavigationToPendingEntry( |
| 331 const GURL& url, | 331 const GURL& url, |
| 332 content::NavigationController::ReloadType reload_type) override; | 332 content::NavigationController::ReloadType reload_type) override; |
| 333 void DidNavigateMainFrame( | 333 void DidNavigateMainFrame( |
| 334 const content::LoadCommittedDetails& details, | 334 const content::LoadCommittedDetails& details, |
| 335 const content::FrameNavigateParams& params) override; | 335 const content::FrameNavigateParams& params) override; |
| 336 void DidStopLoading(content::RenderViewHost* render_view_host) override; | 336 void DidStopLoading(content::RenderViewHost* render_view_host) override; |
| 337 | 337 |
| 338 OneClickSigninSyncStarter::Callback CreateSyncStarterCallback(); | |
| 339 | |
| 340 // Callback invoked when OneClickSigninSyncStarter completes sync setup. | |
| 341 void SyncSetupCompletedCallback( | |
| 342 OneClickSigninSyncStarter::SyncSetupResult result); | |
| 343 | |
| 344 // Tracks if we are in the process of showing the signin or one click | 338 // Tracks if we are in the process of showing the signin or one click |
| 345 // interstitial page. It's set to true the first time we load one of those | 339 // interstitial page. It's set to true the first time we load one of those |
| 346 // pages and set to false when transient state is cleaned. | 340 // pages and set to false when transient state is cleaned. |
| 347 // Note: This should only be used for logging purposes. | 341 // Note: This should only be used for logging purposes. |
| 348 bool showing_signin_; | 342 bool showing_signin_; |
| 349 | 343 |
| 350 // Information about the account that has just logged in. | 344 // Information about the account that has just logged in. |
| 351 std::string session_index_; | 345 std::string session_index_; |
| 352 std::string email_; | 346 std::string email_; |
| 353 std::string password_; | 347 std::string password_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 377 | 371 |
| 378 // Allows unittest to avoid starting sync for real. | 372 // Allows unittest to avoid starting sync for real. |
| 379 bool do_not_start_sync_for_testing_; | 373 bool do_not_start_sync_for_testing_; |
| 380 | 374 |
| 381 base::WeakPtrFactory<OneClickSigninHelper> weak_pointer_factory_; | 375 base::WeakPtrFactory<OneClickSigninHelper> weak_pointer_factory_; |
| 382 | 376 |
| 383 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); | 377 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); |
| 384 }; | 378 }; |
| 385 | 379 |
| 386 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ | 380 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ |
| OLD | NEW |