| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // the Gaia redirect URL. Due to limitations of the NavigationController | 123 // the Gaia redirect URL. Due to limitations of the NavigationController |
| 124 // this cannot be done until a new page becomes "current". | 124 // this cannot be done until a new page becomes "current". |
| 125 static void RemoveSigninRedirectURLHistoryItem( | 125 static void RemoveSigninRedirectURLHistoryItem( |
| 126 content::WebContents* web_contents); | 126 content::WebContents* web_contents); |
| 127 | 127 |
| 128 static void LogConfirmHistogramValue(int action); | 128 static void LogConfirmHistogramValue(int action); |
| 129 | 129 |
| 130 private: | 130 private: |
| 131 friend class content::WebContentsUserData<OneClickSigninHelper>; | 131 friend class content::WebContentsUserData<OneClickSigninHelper>; |
| 132 friend class OneClickSigninHelperTest; | 132 friend class OneClickSigninHelperTest; |
| 133 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, | 133 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIncognitoTest, |
| 134 ShowInfoBarUIThreadIncognito); | 134 ShowInfoBarUIThreadIncognito); |
| 135 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, | 135 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, |
| 136 SigninFromWebstoreWithConfigSyncfirst); | 136 SigninFromWebstoreWithConfigSyncfirst); |
| 137 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, | 137 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, |
| 138 ShowSigninBubbleAfterSigninComplete); | 138 ShowSigninBubbleAfterSigninComplete); |
| 139 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, SigninCancelled); | 139 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, SigninCancelled); |
| 140 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, SigninFailed); | 140 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, SigninFailed); |
| 141 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, | 141 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, |
| 142 CleanTransientStateOnNavigate); | 142 CleanTransientStateOnNavigate); |
| 143 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest, CanOfferOnIOThread); | 143 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest, CanOfferOnIOThread); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // Allows unittests to avoid accessing the ResourceContext for clearing a | 269 // Allows unittests to avoid accessing the ResourceContext for clearing a |
| 270 // pending e-mail. | 270 // pending e-mail. |
| 271 bool do_not_clear_pending_email_; | 271 bool do_not_clear_pending_email_; |
| 272 | 272 |
| 273 base::WeakPtrFactory<OneClickSigninHelper> weak_pointer_factory_; | 273 base::WeakPtrFactory<OneClickSigninHelper> weak_pointer_factory_; |
| 274 | 274 |
| 275 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); | 275 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ | 278 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ |
| OLD | NEW |