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

Side by Side Diff: sync/internal_api/public/util/syncer_error.h

Issue 238273008: Add an action for server to send down rollback command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « sync/engine/syncer_proto_util.cc ('k') | sync/internal_api/public/util/syncer_error.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_UTIL_SYNCER_ERROR_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_
6 #define SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_
7 7
8 #include "sync/base/sync_export.h" 8 #include "sync/base/sync_export.h"
9 9
10 namespace syncer { 10 namespace syncer {
(...skipping 12 matching lines...) Expand all
23 SERVER_RETURN_INVALID_CREDENTIAL, 23 SERVER_RETURN_INVALID_CREDENTIAL,
24 SERVER_RETURN_UNKNOWN_ERROR, 24 SERVER_RETURN_UNKNOWN_ERROR,
25 SERVER_RETURN_THROTTLED, 25 SERVER_RETURN_THROTTLED,
26 SERVER_RETURN_TRANSIENT_ERROR, 26 SERVER_RETURN_TRANSIENT_ERROR,
27 SERVER_RETURN_MIGRATION_DONE, 27 SERVER_RETURN_MIGRATION_DONE,
28 SERVER_RETURN_CLEAR_PENDING, 28 SERVER_RETURN_CLEAR_PENDING,
29 SERVER_RETURN_NOT_MY_BIRTHDAY, 29 SERVER_RETURN_NOT_MY_BIRTHDAY,
30 SERVER_RETURN_CONFLICT, 30 SERVER_RETURN_CONFLICT,
31 SERVER_RESPONSE_VALIDATION_FAILED, 31 SERVER_RESPONSE_VALIDATION_FAILED,
32 SERVER_RETURN_DISABLED_BY_ADMIN, 32 SERVER_RETURN_DISABLED_BY_ADMIN,
33 SERVER_RETURN_USER_ROLLBACK,
33 34
34 // A datatype decided the sync cycle needed to be performed again. 35 // A datatype decided the sync cycle needed to be performed again.
35 DATATYPE_TRIGGERED_RETRY, 36 DATATYPE_TRIGGERED_RETRY,
36 37
37 SERVER_MORE_TO_DOWNLOAD, 38 SERVER_MORE_TO_DOWNLOAD,
38 39
39 SYNCER_OK 40 SYNCER_OK
40 }; 41 };
41 42
42 SYNC_EXPORT const char* GetSyncerErrorString(SyncerError); 43 SYNC_EXPORT const char* GetSyncerErrorString(SyncerError);
43 44
44 // Helper to check that |error| is set to something (not UNSET) and is not 45 // Helper to check that |error| is set to something (not UNSET) and is not
45 // SYNCER_OK. 46 // SYNCER_OK.
46 bool SyncerErrorIsError(SyncerError error); 47 bool SyncerErrorIsError(SyncerError error);
47 48
48 } // namespace syncer 49 } // namespace syncer
49 50
50 #endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ 51 #endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_
OLDNEW
« no previous file with comments | « sync/engine/syncer_proto_util.cc ('k') | sync/internal_api/public/util/syncer_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698