OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SYNC_INTERNAL_API_CONFIGURE_REASON_H_ | |
6 #define CHROME_BROWSER_SYNC_INTERNAL_API_CONFIGURE_REASON_H_ | |
7 #pragma once | |
8 | |
9 namespace sync_api { | |
10 | |
11 // Note: This should confirm with the enums in sync.proto for | |
12 // GetUpdatesCallerInfo. They will have 1:1 mapping but this will only map | |
13 // to a subset of the GetUpdatesCallerInfo enum values. | |
14 enum ConfigureReason { | |
15 // We should never be here during actual configure. This is for setting | |
16 // default values. | |
17 CONFIGURE_REASON_UNKNOWN, | |
18 | |
19 // The client is configuring because the user opted to sync a different set | |
20 // of datatypes. | |
21 CONFIGURE_REASON_RECONFIGURATION, | |
22 | |
23 // The client is configuring because the client is being asked to migrate. | |
24 CONFIGURE_REASON_MIGRATION, | |
25 | |
26 // Setting up sync performs an initial config to download NIGORI data, and | |
27 // also a config to download initial data once the user selects types. | |
28 CONFIGURE_REASON_NEW_CLIENT, | |
29 | |
30 // A new datatype is enabled for syncing due to a client upgrade. | |
31 CONFIGURE_REASON_NEWLY_ENABLED_DATA_TYPE, | |
32 }; | |
33 | |
34 } // namespace sync_api | |
35 | |
36 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_CONFIGURE_REASON_H_ | |
OLD | NEW |