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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
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 COMPONENTS_SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_
5 #define SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_ 5 #define COMPONENTS_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 "components/sync/base/model_type.h"
11 #include "sync/internal_api/public/base/model_type.h" 11 #include "components/sync/base/sync_export.h"
12 12
13 namespace syncer { 13 namespace syncer {
14 14
15 enum SyncProtocolErrorType { 15 enum SyncProtocolErrorType {
16 // Success case. 16 // Success case.
17 SYNC_SUCCESS, 17 SYNC_SUCCESS,
18 18
19 // Birthday does not match that of the server. 19 // Birthday does not match that of the server.
20 NOT_MY_BIRTHDAY, 20 NOT_MY_BIRTHDAY,
21 21
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ModelTypeSet error_data_types; 85 ModelTypeSet error_data_types;
86 SyncProtocolError(); 86 SyncProtocolError();
87 SyncProtocolError(const SyncProtocolError& other); 87 SyncProtocolError(const SyncProtocolError& other);
88 ~SyncProtocolError(); 88 ~SyncProtocolError();
89 base::DictionaryValue* ToValue() const; 89 base::DictionaryValue* ToValue() const;
90 }; 90 };
91 91
92 SYNC_EXPORT const char* GetSyncErrorTypeString(SyncProtocolErrorType type); 92 SYNC_EXPORT const char* GetSyncErrorTypeString(SyncProtocolErrorType type);
93 SYNC_EXPORT const char* GetClientActionString(ClientAction action); 93 SYNC_EXPORT const char* GetClientActionString(ClientAction action);
94 } // namespace syncer 94 } // namespace syncer
95 #endif // SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_ 95 #endif // COMPONENTS_SYNC_PROTOCOL_SYNC_PROTOCOL_ERROR_H_
96
OLDNEW
« no previous file with comments | « components/sync/protocol/sync_proto_export.h ('k') | components/sync/protocol/sync_protocol_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698