| OLD | NEW |
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 struct SYNC_EXPORT SyncProtocolError { | 73 struct SYNC_EXPORT SyncProtocolError { |
| 74 SyncProtocolErrorType error_type; | 74 SyncProtocolErrorType error_type; |
| 75 std::string error_description; | 75 std::string error_description; |
| 76 std::string url; | 76 std::string url; |
| 77 ClientAction action; | 77 ClientAction action; |
| 78 ModelTypeSet error_data_types; | 78 ModelTypeSet error_data_types; |
| 79 SyncProtocolError(); | 79 SyncProtocolError(); |
| 80 ~SyncProtocolError(); | 80 ~SyncProtocolError(); |
| 81 DictionaryValue* ToValue() const; | 81 base::DictionaryValue* ToValue() const; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 SYNC_EXPORT const char* GetSyncErrorTypeString(SyncProtocolErrorType type); | 84 SYNC_EXPORT const char* GetSyncErrorTypeString(SyncProtocolErrorType type); |
| 85 SYNC_EXPORT const char* GetClientActionString(ClientAction action); | 85 SYNC_EXPORT const char* GetClientActionString(ClientAction action); |
| 86 } // namespace syncer | 86 } // namespace syncer |
| 87 #endif // SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_ | 87 #endif // SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_ |
| 88 | 88 |
| OLD | NEW |