Index: chrome/browser/sync/engine/syncer_error.h |
diff --git a/chrome/browser/sync/engine/syncer_error.h b/chrome/browser/sync/engine/syncer_error.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..96f844a5090d603db851cc4c417263d402cffa96 |
--- /dev/null |
+++ b/chrome/browser/sync/engine/syncer_error.h |
@@ -0,0 +1,37 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
tim (not reviewing)
2012/01/06 16:33:42
2012
rlarocque
2012/01/06 19:44:21
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_ERROR_H_ |
+#define CHROME_BROWSER_SYNC_ENGINE_SYNCER_ERROR_H_ |
+#pragma once |
+ |
+namespace browser_sync { |
+ |
+enum SyncerError { |
tim (not reviewing)
2012/01/06 16:33:42
Please add a comment above here describing what th
rlarocque
2012/01/06 19:44:21
Done.
|
+ UNINITIALIZED = 0, // default value |
tim (not reviewing)
2012/01/06 16:33:42
style nit - Comments must begin with a capital let
tim (not reviewing)
2012/01/06 16:33:42
Maybe INVALID? UNINITIALIZED seems ambiguous...
rlarocque
2012/01/06 19:44:21
The way I see it, there is a difference. INVALID
tim (not reviewing)
2012/01/06 20:07:13
Fair enough. Well, maybe "UNSET" or a synonym the
rlarocque
2012/01/06 21:25:34
Good point. I'll change it to UNSET.
|
+ DIRECTORY_LOOKUP_FAILED, // local directory lookup failure |
+ |
+ NETWORK_CONNECTION_UNAVAILABLE, // connectivity failure |
+ NETWORK_IO_ERROR, // response buffer read error |
+ SYNC_SERVER_ERROR, // non auth HTTP error |
+ SYNC_AUTH_ERROR, // HTTP auth error |
+ |
+ // Based on values returned by server. Most are defined in sync.proto. |
+ SERVER_RETURN_INVALID_CREDENTIAL, |
+ SERVER_RETURN_UNKNOWN_ERROR, |
+ SERVER_RETURN_THROTTLED, |
+ SERVER_RETURN_TRANSIENT_ERROR, |
+ SERVER_RETURN_MIGRATION_DONE, |
+ SERVER_RETURN_CLEAR_PENDING, |
+ SERVER_RETURN_NOT_MY_BIRTHDAY, |
+ SERVER_RESPONSE_VALIDATION_FAILED, |
+ |
+ NO_ERROR, |
+}; |
+ |
+const char * GetSyncerErrorString(SyncerError); |
+ |
+} // namespace browser_sync |
+ |
+#endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_ERROR_H_ |