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

Unified Diff: chrome/browser/sync/engine/syncer_error.h

Issue 9113024: Add return values to SyncerCommand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update for review comments Created 8 years, 12 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698