| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin); | 117 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin); |
| 118 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs); | 118 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs); |
| 119 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DialogCancelled); | 119 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DialogCancelled); |
| 120 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InvalidTransitions); | 120 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InvalidTransitions); |
| 121 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, FullSuccessfulRunSetsPref); | 121 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, FullSuccessfulRunSetsPref); |
| 122 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, AbortedByPendingClear); | 122 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, AbortedByPendingClear); |
| 123 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DiscreteRunGaiaLogin); | 123 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DiscreteRunGaiaLogin); |
| 124 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DiscreteRunChooseDataTypes); | 124 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DiscreteRunChooseDataTypes); |
| 125 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, | 125 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, |
| 126 DiscreteRunChooseDataTypesAbortedByPendingClear); | 126 DiscreteRunChooseDataTypesAbortedByPendingClear); |
| 127 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, EnterPassphraseRequired); |
| 127 | 128 |
| 128 // Use static Run method to get an instance. | 129 // Use static Run method to get an instance. |
| 129 SyncSetupFlow(SyncSetupWizard::State start_state, | 130 SyncSetupFlow(SyncSetupWizard::State start_state, |
| 130 SyncSetupWizard::State end_state, | 131 SyncSetupWizard::State end_state, |
| 131 const std::string& args, SyncSetupFlowContainer* container, | 132 const std::string& args, SyncSetupFlowContainer* container, |
| 132 ProfileSyncService* service); | 133 ProfileSyncService* service); |
| 133 | 134 |
| 134 // Returns true if |this| should transition its state machine to |state| | 135 // Returns true if |this| should transition its state machine to |state| |
| 135 // based on |current_state_|, or false if that would be nonsense or is | 136 // based on |current_state_|, or false if that would be nonsense or is |
| 136 // a no-op. | 137 // a no-op. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 } | 215 } |
| 215 | 216 |
| 216 private: | 217 private: |
| 217 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, | 218 void ExecuteJavascriptInIFrame(const std::wstring& iframe_xpath, |
| 218 const std::wstring& js); | 219 const std::wstring& js); |
| 219 SyncSetupFlow* flow_; | 220 SyncSetupFlow* flow_; |
| 220 DISALLOW_COPY_AND_ASSIGN(FlowHandler); | 221 DISALLOW_COPY_AND_ASSIGN(FlowHandler); |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ | 224 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
| OLD | NEW |