Chromium Code Reviews| 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 void OnPassphraseEntry(const std::string& passphrase); |
| 111 const std::string& mode); | |
| 112 | 111 |
| 113 void OnFirstPassphraseEntry(const std::string& option, | 112 void OnFirstPassphraseEntry(const std::string& option, |
|
tim (not reviewing)
2011/01/13 21:31:59
Could you add a comment here to distinguish these
| |
| 114 const std::string& passphrase); | 113 const std::string& passphrase); |
| 115 | 114 |
| 116 void OnGoToDashboard(); | 115 void OnGoToDashboard(); |
| 117 | 116 |
| 118 private: | 117 private: |
| 119 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin); | 118 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin); |
| 120 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs); | 119 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs); |
| 121 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DialogCancelled); | 120 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DialogCancelled); |
| 122 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InvalidTransitions); | 121 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InvalidTransitions); |
| 123 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, FullSuccessfulRunSetsPref); | 122 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, FullSuccessfulRunSetsPref); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 } | 215 } |
| 217 | 216 |
| 218 private: | 217 private: |
| 219 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, | 218 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, |
| 220 const std::wstring& js); | 219 const std::wstring& js); |
| 221 SyncSetupFlow* flow_; | 220 SyncSetupFlow* flow_; |
| 222 DISALLOW_COPY_AND_ASSIGN(FlowHandler); | 221 DISALLOW_COPY_AND_ASSIGN(FlowHandler); |
| 223 }; | 222 }; |
| 224 | 223 |
| 225 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ | 224 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
| OLD | NEW |