| OLD | NEW |
| 1 // Copyright (c) 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 | 4 |
| 5 #ifndef SYNC_INTERNAL_API_SYNCAPI_INTERNAL_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNCAPI_INTERNAL_H_ |
| 6 #define SYNC_INTERNAL_API_SYNCAPI_INTERNAL_H_ | 6 #define SYNC_INTERNAL_API_SYNCAPI_INTERNAL_H_ |
| 7 | 7 |
| 8 // The functions defined are shared among some of the classes that implement | 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. | 9 // the internal sync API. They are not to be used by clients of the API. |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "sync/base/sync_export.h" |
| 14 |
| 13 namespace sync_pb { | 15 namespace sync_pb { |
| 14 class EntitySpecifics; | 16 class EntitySpecifics; |
| 15 class PasswordSpecificsData; | 17 class PasswordSpecificsData; |
| 16 } | 18 } |
| 17 | 19 |
| 18 namespace syncer { | 20 namespace syncer { |
| 19 | 21 |
| 20 class Cryptographer; | 22 class Cryptographer; |
| 21 | 23 |
| 22 sync_pb::PasswordSpecificsData* DecryptPasswordSpecifics( | 24 sync_pb::PasswordSpecificsData* DecryptPasswordSpecifics( |
| 23 const sync_pb::EntitySpecifics& specifics, | 25 const sync_pb::EntitySpecifics& specifics, |
| 24 Cryptographer* crypto); | 26 Cryptographer* crypto); |
| 25 | 27 |
| 26 void SyncAPINameToServerName(const std::string& syncer_name, | 28 SYNC_EXPORT_PRIVATE void SyncAPINameToServerName(const std::string& syncer_name, |
| 27 std::string* out); | 29 std::string* out); |
| 28 | 30 |
| 29 bool IsNameServerIllegalAfterTrimming(const std::string& name); | 31 bool IsNameServerIllegalAfterTrimming(const std::string& name); |
| 30 | 32 |
| 31 bool AreSpecificsEqual(const Cryptographer* cryptographer, | 33 bool AreSpecificsEqual(const Cryptographer* cryptographer, |
| 32 const sync_pb::EntitySpecifics& left, | 34 const sync_pb::EntitySpecifics& left, |
| 33 const sync_pb::EntitySpecifics& right); | 35 const sync_pb::EntitySpecifics& right); |
| 34 } // namespace syncer | 36 } // namespace syncer |
| 35 | 37 |
| 36 #endif // SYNC_INTERNAL_API_SYNCAPI_INTERNAL_H_ | 38 #endif // SYNC_INTERNAL_API_SYNCAPI_INTERNAL_H_ |
| OLD | NEW |