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

Side by Side Diff: sync/syncable/syncable_proto_util.h

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 11 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/syncable/syncable_id.h ('k') | sync/syncable/syncable_read_transaction.h » ('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 (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 SYNCABLE_PROTOCOL_PROTO_UTIL_H_ 5 #ifndef SYNCABLE_PROTOCOL_PROTO_UTIL_H_
6 #define SYNCABLE_PROTOCOL_PROTO_UTIL_H_ 6 #define SYNCABLE_PROTOCOL_PROTO_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "sync/base/sync_export.h"
10 #include "sync/syncable/syncable_id.h" 11 #include "sync/syncable/syncable_id.h"
11 12
12 namespace sync_pb { 13 namespace sync_pb {
13 class SyncEntity; 14 class SyncEntity;
14 } 15 }
15 16
16 namespace syncer { 17 namespace syncer {
17 18
18 // Converts from a specially formatted string field to a syncable::Id. Used 19 // Converts from a specially formatted string field to a syncable::Id. Used
19 // when interpreting the fields of protocol buffers received from the server. 20 // when interpreting the fields of protocol buffers received from the server.
20 syncable::Id SyncableIdFromProto(const std::string& proto_string); 21 syncable::Id SyncableIdFromProto(const std::string& proto_string);
21 22
22 // Converts from a syncable::Id to a formatted std::string. This is useful for 23 // Converts from a syncable::Id to a formatted std::string. This is useful for
23 // populating the fields of a protobuf which will be sent to the server. 24 // populating the fields of a protobuf which will be sent to the server.
24 std::string SyncableIdToProto(const syncable::Id& syncable_id); 25 SYNC_EXPORT_PRIVATE std::string SyncableIdToProto(
26 const syncable::Id& syncable_id);
25 27
26 // Helper function to determine if this SyncEntity's properties indicate that it 28 // Helper function to determine if this SyncEntity's properties indicate that it
27 // is a folder. 29 // is a folder.
28 bool IsFolder(const sync_pb::SyncEntity& entity); 30 bool IsFolder(const sync_pb::SyncEntity& entity);
29 31
30 // Helper function to determine if this SyncEntity's properties indicate that it 32 // Helper function to determine if this SyncEntity's properties indicate that it
31 // is the root node. 33 // is the root node.
32 bool IsRoot(const sync_pb::SyncEntity& entity); 34 bool IsRoot(const sync_pb::SyncEntity& entity);
33 35
34 } // namespace syncer 36 } // namespace syncer
35 37
36 #endif // SYNCABLE_PROTOCOL_PROTO_UTIL_H_ 38 #endif // SYNCABLE_PROTOCOL_PROTO_UTIL_H_
OLDNEW
« no previous file with comments | « sync/syncable/syncable_id.h ('k') | sync/syncable/syncable_read_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698