| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYNC_INTERNAL_API_SYNCAPI_INTERNAL_H_ | |
| 6 #define CHROME_BROWSER_SYNC_INTERNAL_API_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 browser_sync { | |
| 14 class Cryptographer; | |
| 15 } | |
| 16 | |
| 17 namespace sync_pb { | |
| 18 class EntitySpecifics; | |
| 19 class PasswordSpecificsData; | |
| 20 } | |
| 21 | |
| 22 namespace sync_api { | |
| 23 sync_pb::PasswordSpecificsData* DecryptPasswordSpecifics( | |
| 24 const sync_pb::EntitySpecifics& specifics, | |
| 25 browser_sync::Cryptographer* crypto); | |
| 26 | |
| 27 void SyncAPINameToServerName(const std::string& sync_api_name, | |
| 28 std::string* out); | |
| 29 | |
| 30 bool IsNameServerIllegalAfterTrimming(const std::string& name); | |
| 31 | |
| 32 bool AreSpecificsEqual(const browser_sync::Cryptographer* cryptographer, | |
| 33 const sync_pb::EntitySpecifics& left, | |
| 34 const sync_pb::EntitySpecifics& right); | |
| 35 } | |
| 36 | |
| 37 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNCAPI_INTERNAL_H_ | |
| OLD | NEW |