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_WIZARD_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ |
6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... | |
27 // Show the screen that lets you configure sync. | 27 // Show the screen that lets you configure sync. |
28 // There are two tabs: | 28 // There are two tabs: |
29 // Data Types -- | 29 // Data Types -- |
30 // Choose either "Keep everything synced" or | 30 // Choose either "Keep everything synced" or |
31 // "Choose which data types to sync", and checkboxes for each data type. | 31 // "Choose which data types to sync", and checkboxes for each data type. |
32 // Encryption -- | 32 // Encryption -- |
33 // Choose what to encrypt and whether to use a passphrase. | 33 // Choose what to encrypt and whether to use a passphrase. |
34 CONFIGURE, | 34 CONFIGURE, |
35 // Show the screen that prompts for your passphrase | 35 // Show the screen that prompts for your passphrase |
36 ENTER_PASSPHRASE, | 36 ENTER_PASSPHRASE, |
37 // The panic switch. Something went terribly wrong during setup and we | 37 // An error has occurred in the backend. The next appropriate step is picked |
38 // can't recover. | 38 // based on which error has occurred. |
39 NONFATAL_ERROR, | |
tim (not reviewing)
2011/06/09 14:50:36
Please add unittests for this new state.
| |
40 // The panic switch. Something went terribly wrong during setup and we can't | |
41 // recover. | |
39 FATAL_ERROR, | 42 FATAL_ERROR, |
40 // The client can't set up sync at the moment due to a concurrent operation | 43 // The client can't set up sync at the moment due to a concurrent operation |
41 // to clear cloud data being in progress on the server. | 44 // to clear cloud data being in progress on the server. |
42 SETUP_ABORTED_BY_PENDING_CLEAR, | 45 SETUP_ABORTED_BY_PENDING_CLEAR, |
43 // Loading screen with spinny throbber. | 46 // Loading screen with throbber. |
44 SETTING_UP, | 47 SETTING_UP, |
45 // A catch-all done case for any setup process. | 48 // A catch-all done case for any setup process. |
46 DONE | 49 DONE |
47 }; | 50 }; |
48 | 51 |
49 explicit SyncSetupWizard(ProfileSyncService* service); | 52 explicit SyncSetupWizard(ProfileSyncService* service); |
50 ~SyncSetupWizard(); | 53 ~SyncSetupWizard(); |
51 | 54 |
52 // Advances the wizard to the specified state if possible, or opens a | 55 // Advances the wizard to the specified state if possible, or opens a |
53 // new dialog starting at |advance_state|. If the wizard has never ran | 56 // new dialog starting at |advance_state|. If the wizard has never ran |
(...skipping 23 matching lines...) Expand all Loading... | |
77 static bool IsTerminalState(State state); | 80 static bool IsTerminalState(State state); |
78 | 81 |
79 ProfileSyncService* service_; | 82 ProfileSyncService* service_; |
80 | 83 |
81 SyncSetupFlowContainer* flow_container_; | 84 SyncSetupFlowContainer* flow_container_; |
82 | 85 |
83 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard); | 86 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard); |
84 }; | 87 }; |
85 | 88 |
86 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ | 89 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ |
OLD | NEW |