| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 15 matching lines...) Expand all Loading... |
| 26 // by multiple stages of the wizard. | 26 // by multiple stages of the wizard. |
| 27 struct SyncConfiguration { | 27 struct SyncConfiguration { |
| 28 SyncConfiguration(); | 28 SyncConfiguration(); |
| 29 ~SyncConfiguration(); | 29 ~SyncConfiguration(); |
| 30 | 30 |
| 31 bool encrypt_all; | 31 bool encrypt_all; |
| 32 bool sync_everything; | 32 bool sync_everything; |
| 33 syncable::ModelTypeSet data_types; | 33 syncable::ModelTypeSet data_types; |
| 34 bool use_secondary_passphrase; | 34 bool use_secondary_passphrase; |
| 35 std::string secondary_passphrase; | 35 std::string secondary_passphrase; |
| 36 std::string gaia_passphrase; |
| 36 }; | 37 }; |
| 37 | 38 |
| 38 // The state machine used by SyncSetupWizard, exposed in its own header | 39 // The state machine used by SyncSetupWizard, exposed in its own header |
| 39 // to facilitate testing of SyncSetupWizard. This class is used to open and | 40 // to facilitate testing of SyncSetupWizard. This class is used to open and |
| 40 // run the sync setup overlay in tabbed options and deletes itself when the | 41 // run the sync setup overlay in tabbed options and deletes itself when the |
| 41 // overlay closes. | 42 // overlay closes. |
| 42 class SyncSetupFlow { | 43 class SyncSetupFlow { |
| 43 public: | 44 public: |
| 44 virtual ~SyncSetupFlow(); | 45 virtual ~SyncSetupFlow(); |
| 45 | 46 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 } | 153 } |
| 153 | 154 |
| 154 SyncSetupFlow* get_flow() { return flow_; } | 155 SyncSetupFlow* get_flow() { return flow_; } |
| 155 private: | 156 private: |
| 156 SyncSetupFlow* flow_; | 157 SyncSetupFlow* flow_; |
| 157 | 158 |
| 158 DISALLOW_COPY_AND_ASSIGN(SyncSetupFlowContainer); | 159 DISALLOW_COPY_AND_ASSIGN(SyncSetupFlowContainer); |
| 159 }; | 160 }; |
| 160 | 161 |
| 161 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ | 162 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
| OLD | NEW |