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

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

Issue 10389103: Sync: Clear IS_UNSYNCED for deleted local items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix check_deps issue by moving ChangeEntryIDAndUpdateChildren Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_H_ 5 #ifndef SYNC_SYNCABLE_SYNCABLE_H_
6 #define SYNC_SYNCABLE_SYNCABLE_H_ 6 #define SYNC_SYNCABLE_SYNCABLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <bitset> 10 #include <bitset>
(...skipping 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 EntryKernelMutationMap mutations_; 1338 EntryKernelMutationMap mutations_;
1339 1339
1340 DISALLOW_COPY_AND_ASSIGN(WriteTransaction); 1340 DISALLOW_COPY_AND_ASSIGN(WriteTransaction);
1341 }; 1341 };
1342 1342
1343 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid); 1343 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid);
1344 1344
1345 // This function sets only the flags needed to get this entry to sync. 1345 // This function sets only the flags needed to get this entry to sync.
1346 bool MarkForSyncing(syncable::MutableEntry* e); 1346 bool MarkForSyncing(syncable::MutableEntry* e);
1347 1347
1348 void ChangeEntryIDAndUpdateChildren(syncable::WriteTransaction* trans,
1349 syncable::MutableEntry* entry,
1350 const syncable::Id& new_id);
1351
1352
1348 } // namespace syncable 1353 } // namespace syncable
1349 1354
1350 std::ostream& operator <<(std::ostream&, const syncable::Blob&); 1355 std::ostream& operator <<(std::ostream&, const syncable::Blob&);
1351 1356
1352 #endif // SYNC_SYNCABLE_SYNCABLE_H_ 1357 #endif // SYNC_SYNCABLE_SYNCABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698