OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_SYNC_CORE_IMPL_SYNCAPI_INTERNAL_H_ | |
6 #define COMPONENTS_SYNC_CORE_IMPL_SYNCAPI_INTERNAL_H_ | |
7 | |
8 // The functions defined are shared among some of the classes that implement | |
9 // the internal sync API. They are not to be used by clients of the API. | |
10 | |
11 #include <string> | |
12 | |
13 namespace sync_pb { | |
14 class AttachmentMetadata; | |
15 class EntitySpecifics; | |
16 class PasswordSpecificsData; | |
17 } | |
18 | |
19 namespace syncer { | |
20 | |
21 class Cryptographer; | |
22 | |
23 sync_pb::PasswordSpecificsData* DecryptPasswordSpecifics( | |
24 const sync_pb::EntitySpecifics& specifics, | |
25 Cryptographer* crypto); | |
26 | |
27 void SyncAPINameToServerName(const std::string& syncer_name, std::string* out); | |
28 void ServerNameToSyncAPIName(const std::string& server_name, std::string* out); | |
29 | |
30 bool IsNameServerIllegalAfterTrimming(const std::string& name); | |
31 | |
32 bool AreSpecificsEqual(const Cryptographer* cryptographer, | |
33 const sync_pb::EntitySpecifics& left, | |
34 const sync_pb::EntitySpecifics& right); | |
35 | |
36 // Return true iff |left| and |right| are equal. | |
37 bool AreAttachmentMetadataEqual(const sync_pb::AttachmentMetadata& left, | |
38 const sync_pb::AttachmentMetadata& right); | |
39 | |
40 } // namespace syncer | |
41 | |
42 #endif // COMPONENTS_SYNC_CORE_IMPL_SYNCAPI_INTERNAL_H_ | |
OLD | NEW |