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

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

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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_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 #pragma once 7 #pragma once
8 8
9 namespace csync { 9 namespace syncer {
10 10
11 // This enum describes all the ways a SyncerCommand can fail. 11 // This enum describes all the ways a SyncerCommand can fail.
12 // 12 //
13 // SyncerCommands do many different things, but they share a common function 13 // SyncerCommands do many different things, but they share a common function
14 // signature. This enum, the return value for all SyncerCommands, must be able 14 // signature. This enum, the return value for all SyncerCommands, must be able
15 // to describe any possible failure for all SyncerComand. 15 // to describe any possible failure for all SyncerComand.
16 // 16 //
17 // For convenience, functions which are invoked only by SyncerCommands may also 17 // For convenience, functions which are invoked only by SyncerCommands may also
18 // return a SyncerError. It saves us having to write a conversion function, and 18 // return a SyncerError. It saves us having to write a conversion function, and
19 // it makes refactoring easier. 19 // it makes refactoring easier.
(...skipping 14 matching lines...) Expand all
34 SERVER_RETURN_MIGRATION_DONE, 34 SERVER_RETURN_MIGRATION_DONE,
35 SERVER_RETURN_CLEAR_PENDING, 35 SERVER_RETURN_CLEAR_PENDING,
36 SERVER_RETURN_NOT_MY_BIRTHDAY, 36 SERVER_RETURN_NOT_MY_BIRTHDAY,
37 SERVER_RESPONSE_VALIDATION_FAILED, 37 SERVER_RESPONSE_VALIDATION_FAILED,
38 38
39 SYNCER_OK 39 SYNCER_OK
40 }; 40 };
41 41
42 const char * GetSyncerErrorString(SyncerError); 42 const char * GetSyncerErrorString(SyncerError);
43 43
44 } // namespace csync 44 } // namespace syncer
45 45
46 #endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ 46 #endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/util/report_unrecoverable_error_function.h ('k') | sync/internal_api/public/util/syncer_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698