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

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

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. Created 4 years, 2 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
(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_
OLDNEW
« no previous file with comments | « components/sync/core_impl/sync_manager_impl_unittest.cc ('k') | components/sync/core_impl/syncapi_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698