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

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

Issue 9036003: Avoid useless SYNC_CYCLE_CONTINUATION sync cycle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « chrome/browser/sync/engine/syncer_command.cc ('k') | chrome/browser/sync/engine/syncer_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
+// 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 {
+ UNINITIALIZED = 0, // default value
+ 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_
« no previous file with comments | « chrome/browser/sync/engine/syncer_command.cc ('k') | chrome/browser/sync/engine/syncer_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698