OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #pragma once | |
7 | 6 |
8 #include <string> | 7 #include <string> |
9 | 8 |
10 #include "base/values.h" | 9 #include "base/values.h" |
11 #include "sync/internal_api/public/base/model_type.h" | 10 #include "sync/internal_api/public/base/model_type.h" |
12 | 11 |
13 namespace syncer{ | 12 namespace syncer{ |
14 | 13 |
15 enum SyncProtocolErrorType { | 14 enum SyncProtocolErrorType { |
16 // Success case. | 15 // Success case. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 SyncProtocolError(); | 71 SyncProtocolError(); |
73 ~SyncProtocolError(); | 72 ~SyncProtocolError(); |
74 DictionaryValue* ToValue() const; | 73 DictionaryValue* ToValue() const; |
75 }; | 74 }; |
76 | 75 |
77 const char* GetSyncErrorTypeString(SyncProtocolErrorType type); | 76 const char* GetSyncErrorTypeString(SyncProtocolErrorType type); |
78 const char* GetClientActionString(ClientAction action); | 77 const char* GetClientActionString(ClientAction action); |
79 } // namespace syncer | 78 } // namespace syncer |
80 #endif // SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_ | 79 #endif // SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_ |
81 | 80 |
OLD | NEW |