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

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

Issue 7621085: Server directed error handling backend code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 9 years, 4 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/sync_error.h
diff --git a/chrome/browser/sync/engine/sync_error.h b/chrome/browser/sync/engine/sync_error.h
new file mode 100755
index 0000000000000000000000000000000000000000..f93c90ba510d9718e362046c08af20a4956fb9b8
--- /dev/null
+++ b/chrome/browser/sync/engine/sync_error.h
@@ -0,0 +1,42 @@
+// 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_SYNC_ERROR_H_
+#define CHROME_BROWSER_SYNC_ENGINE_SYNC_ERROR_H_
+#pragma once
+
+#include <string>
+
+namespace sync_api {
+
+enum SyncErrorType {
+ SUCCESS,
+ NOT_MY_BIRTHDAY,
+ THROTTLED,
+ CLEAR_PENDING,
+ TRANSIENT_ERROR,
+ NON_RETRIABLE_ERROR,
+ MIGRATION_DONE,
+ INVALID_CREDENTIAL,
+ UNKNOWN_ERROR
+};
+
+enum ClientAction {
+ UPGRADE_CLIENT,
+ CLEAR_USER_DATA_AND_RESYNC,
+ ENABLE_SYNC_ON_ACCOUNT,
+ STOP_AND_RESTART_SYNC,
+ DISABLE_SYNC_ON_CLIENT,
+ UNKNOWN_ACTION
+};
+
+struct SyncError {
+ SyncErrorType error_type;
+ std::string error_description;
+ std::string url;
+ ClientAction action;
+ SyncError() : error_type(UNKNOWN_ERROR), action(UNKNOWN_ACTION) {}
+ ~SyncError() {}
+};
+} // namespace sync_api
+#endif // CHROME_BROWSER_SYNC_ENGINE_SYNC_ERROR_H_
« no previous file with comments | « no previous file | chrome/browser/sync/engine/sync_scheduler.h » ('j') | chrome/browser/sync/engine/syncer_proto_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698