| 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_
|
|
|