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

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

Issue 10917234: sync: make scheduling logic and job ownership more obvious. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: eof Created 8 years, 1 month 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_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 namespace syncer { 8 namespace syncer {
9 9
10 // This enum describes all the ways a SyncerCommand can fail. 10 // This enum describes all the ways a SyncerCommand can fail.
(...skipping 10 matching lines...) Expand all
21 DIRECTORY_LOOKUP_FAILED, // Local directory lookup failure. 21 DIRECTORY_LOOKUP_FAILED, // Local directory lookup failure.
22 CANNOT_DO_WORK, // A model worker could not process a work item. 22 CANNOT_DO_WORK, // A model worker could not process a work item.
23 23
24 NETWORK_CONNECTION_UNAVAILABLE, // Connectivity failure. 24 NETWORK_CONNECTION_UNAVAILABLE, // Connectivity failure.
25 NETWORK_IO_ERROR, // Response buffer read error. 25 NETWORK_IO_ERROR, // Response buffer read error.
26 SYNC_SERVER_ERROR, // Non auth HTTP error. 26 SYNC_SERVER_ERROR, // Non auth HTTP error.
27 SYNC_AUTH_ERROR, // HTTP auth error. 27 SYNC_AUTH_ERROR, // HTTP auth error.
28 28
29 // Based on values returned by server. Most are defined in sync.proto. 29 // Based on values returned by server. Most are defined in sync.proto.
30 SERVER_RETURN_INVALID_CREDENTIAL, 30 SERVER_RETURN_INVALID_CREDENTIAL,
31 FIRST_SERVER_RETURN_VALUE = SERVER_RETURN_INVALID_CREDENTIAL,
32
31 SERVER_RETURN_UNKNOWN_ERROR, 33 SERVER_RETURN_UNKNOWN_ERROR,
32 SERVER_RETURN_THROTTLED, 34 SERVER_RETURN_THROTTLED,
33 SERVER_RETURN_TRANSIENT_ERROR, 35 SERVER_RETURN_TRANSIENT_ERROR,
34 SERVER_RETURN_MIGRATION_DONE, 36 SERVER_RETURN_MIGRATION_DONE,
35 SERVER_RETURN_CLEAR_PENDING, 37 SERVER_RETURN_CLEAR_PENDING,
36 SERVER_RETURN_NOT_MY_BIRTHDAY, 38 SERVER_RETURN_NOT_MY_BIRTHDAY,
37 SERVER_RESPONSE_VALIDATION_FAILED, 39 SERVER_RESPONSE_VALIDATION_FAILED,
38 40
39 SYNCER_OK 41 SYNCER_OK
40 }; 42 };
41 43
42 const char * GetSyncerErrorString(SyncerError); 44 const char * GetSyncerErrorString(SyncerError);
43 45
44 // Helper to check that |error| is set to something (not UNSET) and is not 46 // Helper to check that |error| is set to something (not UNSET) and is not
45 // SYNCER_OK. 47 // SYNCER_OK.
46 bool SyncerErrorIsError(SyncerError error); 48 bool SyncerErrorIsError(SyncerError error);
47 49
48 } // namespace syncer 50 } // namespace syncer
49 51
50 #endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ 52 #endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sessions/sync_session_snapshot.cc ('k') | sync/sessions/session_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698