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: sync/internal_api/syncapi_internal.h

Issue 393083004: Update Commit and GetUpdatesResponse messages to include attachment ids. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update SyncManagerImpl to detect attachment metadata changes. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/internal_api/syncapi_internal.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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" 13 #include "sync/base/sync_export.h"
14 14
15 namespace sync_pb { 15 namespace sync_pb {
16 class AttachmentMetadata;
16 class EntitySpecifics; 17 class EntitySpecifics;
17 class PasswordSpecificsData; 18 class PasswordSpecificsData;
18 } 19 }
19 20
20 namespace syncer { 21 namespace syncer {
21 22
22 class Cryptographer; 23 class Cryptographer;
23 24
24 sync_pb::PasswordSpecificsData* DecryptPasswordSpecifics( 25 sync_pb::PasswordSpecificsData* DecryptPasswordSpecifics(
25 const sync_pb::EntitySpecifics& specifics, 26 const sync_pb::EntitySpecifics& specifics,
26 Cryptographer* crypto); 27 Cryptographer* crypto);
27 28
28 SYNC_EXPORT void SyncAPINameToServerName(const std::string& syncer_name, 29 SYNC_EXPORT void SyncAPINameToServerName(const std::string& syncer_name,
29 std::string* out); 30 std::string* out);
30 SYNC_EXPORT void ServerNameToSyncAPIName(const std::string& server_name, 31 SYNC_EXPORT void ServerNameToSyncAPIName(const std::string& server_name,
31 std::string* out); 32 std::string* out);
32 33
33 bool IsNameServerIllegalAfterTrimming(const std::string& name); 34 bool IsNameServerIllegalAfterTrimming(const std::string& name);
34 35
35 bool AreSpecificsEqual(const Cryptographer* cryptographer, 36 bool AreSpecificsEqual(const Cryptographer* cryptographer,
36 const sync_pb::EntitySpecifics& left, 37 const sync_pb::EntitySpecifics& left,
37 const sync_pb::EntitySpecifics& right); 38 const sync_pb::EntitySpecifics& right);
39
40 // Return true iff |left| and |right| are equal.
41 bool AreAttachmentMetadataEqual(const sync_pb::AttachmentMetadata& left,
42 const sync_pb::AttachmentMetadata& right);
43
38 } // namespace syncer 44 } // namespace syncer
39 45
40 #endif // SYNC_INTERNAL_API_SYNCAPI_INTERNAL_H_ 46 #endif // SYNC_INTERNAL_API_SYNCAPI_INTERNAL_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/internal_api/syncapi_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698