Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: sync/internal_api/public/configure_reason.h

Issue 10700154: Remove #pragma once from sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 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 SYNC_INTERNAL_API_PUBLIC_CONFIGURE_REASON_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_CONFIGURE_REASON_H_
6 #define SYNC_INTERNAL_API_PUBLIC_CONFIGURE_REASON_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_CONFIGURE_REASON_H_
7 #pragma once
8 7
9 namespace syncer { 8 namespace syncer {
10 9
11 // Note: This should confirm with the enums in sync.proto for 10 // Note: This should confirm with the enums in sync.proto for
12 // GetUpdatesCallerInfo. They will have 1:1 mapping but this will only map 11 // GetUpdatesCallerInfo. They will have 1:1 mapping but this will only map
13 // to a subset of the GetUpdatesCallerInfo enum values. 12 // to a subset of the GetUpdatesCallerInfo enum values.
14 enum ConfigureReason { 13 enum ConfigureReason {
15 // We should never be here during actual configure. This is for setting 14 // We should never be here during actual configure. This is for setting
16 // default values. 15 // default values.
17 CONFIGURE_REASON_UNKNOWN, 16 CONFIGURE_REASON_UNKNOWN,
18 17
19 // The client is configuring because the user opted to sync a different set 18 // The client is configuring because the user opted to sync a different set
20 // of datatypes. 19 // of datatypes.
21 CONFIGURE_REASON_RECONFIGURATION, 20 CONFIGURE_REASON_RECONFIGURATION,
22 21
23 // The client is configuring because the client is being asked to migrate. 22 // The client is configuring because the client is being asked to migrate.
24 CONFIGURE_REASON_MIGRATION, 23 CONFIGURE_REASON_MIGRATION,
25 24
26 // Setting up sync performs an initial config to download NIGORI data, and 25 // 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. 26 // also a config to download initial data once the user selects types.
28 CONFIGURE_REASON_NEW_CLIENT, 27 CONFIGURE_REASON_NEW_CLIENT,
29 28
30 // A new datatype is enabled for syncing due to a client upgrade. 29 // A new datatype is enabled for syncing due to a client upgrade.
31 CONFIGURE_REASON_NEWLY_ENABLED_DATA_TYPE, 30 CONFIGURE_REASON_NEWLY_ENABLED_DATA_TYPE,
32 }; 31 };
33 32
34 } // namespace syncer 33 } // namespace syncer
35 34
36 #endif // SYNC_INTERNAL_API_PUBLIC_CONFIGURE_REASON_H_ 35 #endif // SYNC_INTERNAL_API_PUBLIC_CONFIGURE_REASON_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/base_transaction.h ('k') | sync/internal_api/public/engine/model_safe_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698