| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_SYNC_SYNC_SETUP_FLOW_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
| 6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual bool IsDialogModal() const; | 100 virtual bool IsDialogModal() const; |
| 101 virtual bool ShouldShowDialogTitle() const; | 101 virtual bool ShouldShowDialogTitle() const; |
| 102 | 102 |
| 103 void OnUserSubmittedAuth(const std::string& username, | 103 void OnUserSubmittedAuth(const std::string& username, |
| 104 const std::string& password, | 104 const std::string& password, |
| 105 const std::string& captcha, | 105 const std::string& captcha, |
| 106 const std::string& access_code); | 106 const std::string& access_code); |
| 107 | 107 |
| 108 void OnUserConfigured(const SyncConfiguration& configuration); | 108 void OnUserConfigured(const SyncConfiguration& configuration); |
| 109 | 109 |
| 110 void OnPassphraseEntry(const std::string& passphrase, | 110 // The 'passphrase' screen is used when the user is prompted to enter |
| 111 const std::string& mode); | 111 // an existing passphrase. |
| 112 void OnPassphraseEntry(const std::string& passphrase); |
| 112 | 113 |
| 114 // The 'first passphrase' screen is for users migrating from a build |
| 115 // without passwords, who are prompted to make a passphrase choice. |
| 113 void OnFirstPassphraseEntry(const std::string& option, | 116 void OnFirstPassphraseEntry(const std::string& option, |
| 114 const std::string& passphrase); | 117 const std::string& passphrase); |
| 115 | 118 |
| 116 void OnGoToDashboard(); | 119 void OnGoToDashboard(); |
| 117 | 120 |
| 118 private: | 121 private: |
| 119 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin); | 122 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin); |
| 120 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs); | 123 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs); |
| 121 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DialogCancelled); | 124 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DialogCancelled); |
| 122 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InvalidTransitions); | 125 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InvalidTransitions); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 } | 219 } |
| 217 | 220 |
| 218 private: | 221 private: |
| 219 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, | 222 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, |
| 220 const std::wstring& js); | 223 const std::wstring& js); |
| 221 SyncSetupFlow* flow_; | 224 SyncSetupFlow* flow_; |
| 222 DISALLOW_COPY_AND_ASSIGN(FlowHandler); | 225 DISALLOW_COPY_AND_ASSIGN(FlowHandler); |
| 223 }; | 226 }; |
| 224 | 227 |
| 225 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ | 228 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
| OLD | NEW |