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

Side by Side Diff: sync/syncable/syncable_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_read_transaction.h ('k') | sync/syncable/syncable_write_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 SYNC_SYNCABLE_SYNCABLE_UTIL_H_ 5 #ifndef SYNC_SYNCABLE_SYNCABLE_UTIL_H_
6 #define SYNC_SYNCABLE_SYNCABLE_UTIL_H_ 6 #define SYNC_SYNCABLE_SYNCABLE_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "sync/base/sync_export.h"
12 #include "sync/internal_api/public/base/model_type.h" 13 #include "sync/internal_api/public/base/model_type.h"
13 14
14 namespace tracked_objects { 15 namespace tracked_objects {
15 class Location; 16 class Location;
16 } 17 }
17 18
18 namespace syncer { 19 namespace syncer {
19 namespace syncable { 20 namespace syncable {
20 21
21 class BaseTransaction; 22 class BaseTransaction;
22 class WriteTransaction; 23 class WriteTransaction;
23 class MutableEntry; 24 class MutableEntry;
24 class Id; 25 class Id;
25 26
26 void ChangeEntryIDAndUpdateChildren(WriteTransaction* trans, 27 SYNC_EXPORT_PRIVATE void ChangeEntryIDAndUpdateChildren(WriteTransaction* trans,
27 MutableEntry* entry, 28 MutableEntry* entry,
28 const Id& new_id); 29 const Id& new_id);
29 30
30 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid); 31 SYNC_EXPORT_PRIVATE bool IsLegalNewParent(BaseTransaction* trans,
32 const Id& id,
33 const Id& parentid);
31 34
32 bool SyncAssert(bool condition, 35 bool SyncAssert(bool condition,
33 const tracked_objects::Location& location, 36 const tracked_objects::Location& location,
34 const char* msg, 37 const char* msg,
35 BaseTransaction* trans); 38 BaseTransaction* trans);
36 39
37 int GetUnsyncedEntries(BaseTransaction* trans, 40 SYNC_EXPORT_PRIVATE int GetUnsyncedEntries(BaseTransaction* trans,
38 std::vector<int64> *handles); 41 std::vector<int64> *handles);
39 42
40 // Generates a fixed-length tag for the given string under the given model_type. 43 // Generates a fixed-length tag for the given string under the given model_type.
41 std::string GenerateSyncableHash( 44 SYNC_EXPORT_PRIVATE std::string GenerateSyncableHash(
42 ModelType model_type, const std::string& client_tag); 45 ModelType model_type, const std::string& client_tag);
43 46
44 } // namespace syncable 47 } // namespace syncable
45 } // namespace syncer 48 } // namespace syncer
46 49
47 #endif // SYNC_SYNCABLE_SYNCABLE_UTIL_H_ 50 #endif // SYNC_SYNCABLE_SYNCABLE_UTIL_H_
OLDNEW
« no previous file with comments | « sync/syncable/syncable_read_transaction.h ('k') | sync/syncable/syncable_write_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698