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

Unified Diff: sync/internal_api/public/util/syncer_error.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/util/syncer_error.h
diff --git a/sync/internal_api/public/util/syncer_error.h b/sync/internal_api/public/util/syncer_error.h
deleted file mode 100644
index 47b5ab4972c3309124b5aa1cdca0e3d8845fed82..0000000000000000000000000000000000000000
--- a/sync/internal_api/public/util/syncer_error.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2012 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 SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_
-#define SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_
-
-#include "sync/base/sync_export.h"
-
-namespace syncer {
-
-// This enum describes all the possible results of a sync cycle.
-enum SyncerError {
- UNSET = 0, // Default value.
- CANNOT_DO_WORK, // A model worker could not process a work item.
-
- 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_RETURN_CONFLICT,
- SERVER_RESPONSE_VALIDATION_FAILED,
- SERVER_RETURN_DISABLED_BY_ADMIN,
- SERVER_RETURN_USER_ROLLBACK,
- SERVER_RETURN_PARTIAL_FAILURE,
- SERVER_RETURN_CLIENT_DATA_OBSOLETE,
-
- // A datatype decided the sync cycle needed to be performed again.
- DATATYPE_TRIGGERED_RETRY,
-
- SERVER_MORE_TO_DOWNLOAD,
-
- SYNCER_OK
-};
-
-SYNC_EXPORT const char* GetSyncerErrorString(SyncerError);
-
-// Helper to check that |error| is set to something (not UNSET) and is not
-// SYNCER_OK.
-bool SyncerErrorIsError(SyncerError error);
-
-} // namespace syncer
-
-#endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_
« no previous file with comments | « sync/internal_api/public/util/sync_string_conversions.cc ('k') | sync/internal_api/public/util/syncer_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698