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

Side by Side Diff: chrome/browser/sync/sessions/sync_error.h

Issue 7621085: Server directed error handling backend code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing CR feedback. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef CHROME_BROWSER_SYNC_SESSIONS_SYNC_ERROR_H_
5 #define CHROME_BROWSER_SYNC_SESSIONS_SYNC_ERROR_H_
6 #pragma once
7
8 #include <string>
9
10 #include "base/values.h"
11
12 namespace browser_sync{
13 namespace sessions {
14
15 enum SyncErrorType {
16 SUCCESS,
tim (not reviewing) 2011/08/24 14:47:51 each case here should have comments.
lipalani1 2011/08/25 06:14:06 Done.
17 NOT_MY_BIRTHDAY,
18 THROTTLED,
19 CLEAR_PENDING,
20 TRANSIENT_ERROR,
21 NON_RETRIABLE_ERROR,
22 MIGRATION_DONE,
23 INVALID_CREDENTIAL,
24 UNKNOWN_ERROR
25 };
26
27 enum ClientAction {
28 UPGRADE_CLIENT,
29 CLEAR_USER_DATA_AND_RESYNC,
30 ENABLE_SYNC_ON_ACCOUNT,
31 STOP_AND_RESTART_SYNC,
32 DISABLE_SYNC_ON_CLIENT,
33 UNKNOWN_ACTION
34 };
35
36 struct SyncError {
tim (not reviewing) 2011/08/24 14:47:51 Can we call this 'SyncProtocolError' to make it a
lipalani1 2011/08/25 06:14:06 Done.
37 SyncErrorType error_type;
38 std::string error_description;
39 std::string url;
40 ClientAction action;
41 SyncError();
42 ~SyncError();
43 DictionaryValue* ToValue() const;
44 };
45 } // namespace sessions
46 } // namespace browser_sync
47 #endif // CHROME_BROWSER_SYNC_SESSIONS_SYNC_ERROR_H_
48
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698