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

Side by Side Diff: components/sync/core_impl/syncapi_internal.h

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. 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 4
5 #ifndef COMPONENTS_SYNC_CORE_IMPL_SYNCAPI_INTERNAL_H_ 5 #ifndef COMPONENTS_SYNC_CORE_IMPL_SYNCAPI_INTERNAL_H_
6 #define COMPONENTS_SYNC_CORE_IMPL_SYNCAPI_INTERNAL_H_ 6 #define COMPONENTS_SYNC_CORE_IMPL_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 "components/sync/base/sync_export.h"
14
15 namespace sync_pb { 13 namespace sync_pb {
16 class AttachmentMetadata; 14 class AttachmentMetadata;
17 class EntitySpecifics; 15 class EntitySpecifics;
18 class PasswordSpecificsData; 16 class PasswordSpecificsData;
19 } 17 }
20 18
21 namespace syncer { 19 namespace syncer {
22 20
23 class Cryptographer; 21 class Cryptographer;
24 22
25 sync_pb::PasswordSpecificsData* DecryptPasswordSpecifics( 23 sync_pb::PasswordSpecificsData* DecryptPasswordSpecifics(
26 const sync_pb::EntitySpecifics& specifics, 24 const sync_pb::EntitySpecifics& specifics,
27 Cryptographer* crypto); 25 Cryptographer* crypto);
28 26
29 SYNC_EXPORT void SyncAPINameToServerName(const std::string& syncer_name, 27 void SyncAPINameToServerName(const std::string& syncer_name, std::string* out);
30 std::string* out); 28 void ServerNameToSyncAPIName(const std::string& server_name, std::string* out);
31 SYNC_EXPORT void ServerNameToSyncAPIName(const std::string& server_name,
32 std::string* out);
33 29
34 bool IsNameServerIllegalAfterTrimming(const std::string& name); 30 bool IsNameServerIllegalAfterTrimming(const std::string& name);
35 31
36 bool AreSpecificsEqual(const Cryptographer* cryptographer, 32 bool AreSpecificsEqual(const Cryptographer* cryptographer,
37 const sync_pb::EntitySpecifics& left, 33 const sync_pb::EntitySpecifics& left,
38 const sync_pb::EntitySpecifics& right); 34 const sync_pb::EntitySpecifics& right);
39 35
40 // Return true iff |left| and |right| are equal. 36 // Return true iff |left| and |right| are equal.
41 bool AreAttachmentMetadataEqual(const sync_pb::AttachmentMetadata& left, 37 bool AreAttachmentMetadataEqual(const sync_pb::AttachmentMetadata& left,
42 const sync_pb::AttachmentMetadata& right); 38 const sync_pb::AttachmentMetadata& right);
43 39
44 } // namespace syncer 40 } // namespace syncer
45 41
46 #endif // COMPONENTS_SYNC_CORE_IMPL_SYNCAPI_INTERNAL_H_ 42 #endif // COMPONENTS_SYNC_CORE_IMPL_SYNCAPI_INTERNAL_H_
OLDNEW
« no previous file with comments | « components/sync/core_impl/sync_manager_impl.h ('k') | components/sync/core_impl/syncapi_server_connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698