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

Side by Side Diff: sync/protocol/sync_protocol_error.h

Issue 1500803002: [Sync] Ensure all values of SyncProtocolErrorType are handled in ShouldRequestEarlyExit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows build Created 5 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 unified diff | Download patch
« no previous file with comments | « sync/engine/sync_scheduler_impl.cc ('k') | sync/protocol/sync_protocol_error.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 #ifndef SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_ 4 #ifndef SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_
5 #define SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_ 5 #define SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "sync/base/sync_export.h" 10 #include "sync/base/sync_export.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // Server is busy. Try later. 22 // Server is busy. Try later.
23 THROTTLED, 23 THROTTLED,
24 24
25 // Clear user data is being currently executed by the server. 25 // Clear user data is being currently executed by the server.
26 CLEAR_PENDING, 26 CLEAR_PENDING,
27 27
28 // Server cannot service the request now. 28 // Server cannot service the request now.
29 TRANSIENT_ERROR, 29 TRANSIENT_ERROR,
30 30
31 // Server does not wish the client to retry any more until the action has
32 // been taken.
33 NON_RETRIABLE_ERROR,
34
35 // Indicates the datatypes have been migrated and the client should resync 31 // Indicates the datatypes have been migrated and the client should resync
36 // them to get the latest progress markers. 32 // them to get the latest progress markers.
37 MIGRATION_DONE, 33 MIGRATION_DONE,
38 34
39 // Invalid Credential. 35 // Invalid Credential.
40 INVALID_CREDENTIAL, 36 INVALID_CREDENTIAL,
41 37
42 // An administrator disabled sync for this domain. 38 // An administrator disabled sync for this domain.
43 DISABLED_BY_ADMIN, 39 DISABLED_BY_ADMIN,
44 40
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 SyncProtocolError(); 96 SyncProtocolError();
101 ~SyncProtocolError(); 97 ~SyncProtocolError();
102 base::DictionaryValue* ToValue() const; 98 base::DictionaryValue* ToValue() const;
103 }; 99 };
104 100
105 SYNC_EXPORT const char* GetSyncErrorTypeString(SyncProtocolErrorType type); 101 SYNC_EXPORT const char* GetSyncErrorTypeString(SyncProtocolErrorType type);
106 SYNC_EXPORT const char* GetClientActionString(ClientAction action); 102 SYNC_EXPORT const char* GetClientActionString(ClientAction action);
107 } // namespace syncer 103 } // namespace syncer
108 #endif // SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_ 104 #endif // SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_
109 105
OLDNEW
« no previous file with comments | « sync/engine/sync_scheduler_impl.cc ('k') | sync/protocol/sync_protocol_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698