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