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 12 matching lines...) Expand all Loading... |
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 encrypt_all; |
32 bool sync_everything; | 32 bool sync_everything; |
33 syncable::ModelEnumSet data_types; | 33 syncable::ModelTypeSet data_types; |
34 // We pass a separate |set_xxxxx_passphrase| flag because sometimes the UI | 34 // We pass a separate |set_xxxxx_passphrase| flag because sometimes the UI |
35 // wants to set an empty gaia/secondary passphrase (for example, when the user | 35 // wants to set an empty gaia/secondary passphrase (for example, when the user |
36 // doesn't enter a passphrase, but we still want the ProfileSyncService to | 36 // doesn't enter a passphrase, but we still want the ProfileSyncService to |
37 // generate a new passphrase error if there are still encrypted types | 37 // generate a new passphrase error if there are still encrypted types |
38 // enabled). | 38 // enabled). |
39 // TODO(atwilson): Need to change SyncSetupFlow::OnUserConfigured() to | 39 // TODO(atwilson): Need to change SyncSetupFlow::OnUserConfigured() to |
40 // check for the presence of encrypted types itself, rather than relying on | 40 // check for the presence of encrypted types itself, rather than relying on |
41 // the hack of passing an empty passphrase/waiting for ProfileSyncService to | 41 // the hack of passing an empty passphrase/waiting for ProfileSyncService to |
42 // receive a new PassphraseRequired (http://crbug.com/95939). | 42 // receive a new PassphraseRequired (http://crbug.com/95939). |
43 bool set_secondary_passphrase; | 43 bool set_secondary_passphrase; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 173 } |
174 | 174 |
175 SyncSetupFlow* get_flow() { return flow_; } | 175 SyncSetupFlow* get_flow() { return flow_; } |
176 private: | 176 private: |
177 SyncSetupFlow* flow_; | 177 SyncSetupFlow* flow_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(SyncSetupFlowContainer); | 179 DISALLOW_COPY_AND_ASSIGN(SyncSetupFlowContainer); |
180 }; | 180 }; |
181 | 181 |
182 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ | 182 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ |
OLD | NEW |