| 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 10 matching lines...) Expand all Loading... |
| 21 class SyncSetupFlowHandler; | 21 class SyncSetupFlowHandler; |
| 22 class SyncSetupFlowContainer; | 22 class SyncSetupFlowContainer; |
| 23 | 23 |
| 24 // A structure which contains all the configuration information for sync. | 24 // A structure which contains all the configuration information for sync. |
| 25 // This can be stored or passed around when the configuration is managed | 25 // This can be stored or passed around when the configuration is managed |
| 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 sync_everything; | 32 bool sync_everything; |
| 32 syncable::ModelTypeSet data_types; | 33 syncable::ModelTypeSet data_types; |
| 33 bool use_secondary_passphrase; | 34 bool use_secondary_passphrase; |
| 34 std::string secondary_passphrase; | 35 std::string secondary_passphrase; |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 // The state machine used by SyncSetupWizard, exposed in its own header | 38 // The state machine used by SyncSetupWizard, exposed in its own header |
| 38 // to facilitate testing of SyncSetupWizard. This class is used to open and | 39 // to facilitate testing of SyncSetupWizard. This class is used to open and |
| 39 // run the sync setup overlay in tabbed options and deletes itself when the | 40 // run the sync setup overlay in tabbed options and deletes itself when the |
| 40 // overlay closes. | 41 // overlay closes. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 } | 156 } |
| 156 | 157 |
| 157 SyncSetupFlow* get_flow() { return flow_; } | 158 SyncSetupFlow* get_flow() { return flow_; } |
| 158 private: | 159 private: |
| 159 SyncSetupFlow* flow_; | 160 SyncSetupFlow* flow_; |
| 160 | 161 |
| 161 DISALLOW_COPY_AND_ASSIGN(SyncSetupFlowContainer); | 162 DISALLOW_COPY_AND_ASSIGN(SyncSetupFlowContainer); |
| 162 }; | 163 }; |
| 163 | 164 |
| 164 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ | 165 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
| OLD | NEW |