| 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_WEBUI_SYNC_SETUP_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // gets ready. | 54 // gets ready. |
| 55 void OpenConfigureSync(); | 55 void OpenConfigureSync(); |
| 56 | 56 |
| 57 // Terminates the sync setup flow. | 57 // Terminates the sync setup flow. |
| 58 void CloseSyncSetup(); | 58 void CloseSyncSetup(); |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 friend class SyncSetupHandlerTest; | 61 friend class SyncSetupHandlerTest; |
| 62 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, | 62 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, |
| 63 DisplayConfigureWithBackendDisabledAndCancel); | 63 DisplayConfigureWithBackendDisabledAndCancel); |
| 64 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, HandleSetupUIWhenSyncDisabled); |
| 64 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, SelectCustomEncryption); | 65 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, SelectCustomEncryption); |
| 65 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, ShowSyncSetupWhenNotSignedIn); | 66 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, ShowSyncSetupWhenNotSignedIn); |
| 66 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, SuccessfullySetPassphrase); | 67 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, SuccessfullySetPassphrase); |
| 67 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TestSyncEverything); | 68 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TestSyncEverything); |
| 68 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TestSyncNothing); | 69 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TestSyncNothing); |
| 69 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TestSyncAllManually); | 70 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TestSyncAllManually); |
| 70 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TestPassphraseStillRequired); | 71 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TestPassphraseStillRequired); |
| 71 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TestSyncIndividualTypes); | 72 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TestSyncIndividualTypes); |
| 72 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TurnOnEncryptAll); | 73 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, TurnOnEncryptAll); |
| 73 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, UnsuccessfullySetPassphrase); | 74 FRIEND_TEST_ALL_PREFIXES(SyncSetupHandlerTest, UnsuccessfullySetPassphrase); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 ProfileManager* const profile_manager_; | 160 ProfileManager* const profile_manager_; |
| 160 | 161 |
| 161 // The OneShotTimer object used to timeout of starting the sync backend | 162 // The OneShotTimer object used to timeout of starting the sync backend |
| 162 // service. | 163 // service. |
| 163 scoped_ptr<base::OneShotTimer<SyncSetupHandler> > backend_start_timer_; | 164 scoped_ptr<base::OneShotTimer<SyncSetupHandler> > backend_start_timer_; |
| 164 | 165 |
| 165 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); | 166 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); |
| 166 }; | 167 }; |
| 167 | 168 |
| 168 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ | 169 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
| OLD | NEW |