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

Side by Side Diff: chrome/browser/sync/glue/bookmark_change_processor.h

Issue 11341048: Populate versions on individual nodes in sync model and native bookmark model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lock dir Created 8 years, 1 month 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 CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 std::vector<unsigned char>* dst); 159 std::vector<unsigned char>* dst);
160 160
161 // Remove the sync node corresponding to |node|. It shouldn't have 161 // Remove the sync node corresponding to |node|. It shouldn't have
162 // any children. 162 // any children.
163 void RemoveOneSyncNode(syncer::WriteTransaction* trans, 163 void RemoveOneSyncNode(syncer::WriteTransaction* trans,
164 const BookmarkNode* node); 164 const BookmarkNode* node);
165 165
166 // Remove all the sync nodes associated with |node| and its children. 166 // Remove all the sync nodes associated with |node| and its children.
167 void RemoveSyncNodeHierarchy(const BookmarkNode* node); 167 void RemoveSyncNodeHierarchy(const BookmarkNode* node);
168 168
169 // Update transaction version of |model| and |node| to if sync model gets a
170 // new version.
Nicolas Zea 2012/11/02 21:02:25 |node| -> |nodes| "to if sync model..." -> "to |n
haitaol1 2012/11/02 22:58:18 Done.
171 void UpdateTransactionVersion(int64 old_version,
Nicolas Zea 2012/11/02 21:02:25 old_version -> new_version?
haitaol1 2012/11/02 22:58:18 Done.
172 BookmarkModel* model,
173 const std::vector<const BookmarkNode*>& nodes);
174
169 // The bookmark model we are processing changes from. Non-NULL when 175 // The bookmark model we are processing changes from. Non-NULL when
170 // |running_| is true. 176 // |running_| is true.
171 BookmarkModel* bookmark_model_; 177 BookmarkModel* bookmark_model_;
172 178
173 // The two models should be associated according to this ModelAssociator. 179 // The two models should be associated according to this ModelAssociator.
174 BookmarkModelAssociator* model_associator_; 180 BookmarkModelAssociator* model_associator_;
175 181
176 DISALLOW_COPY_AND_ASSIGN(BookmarkChangeProcessor); 182 DISALLOW_COPY_AND_ASSIGN(BookmarkChangeProcessor);
177 }; 183 };
178 184
179 } // namespace browser_sync 185 } // namespace browser_sync
180 186
181 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_ 187 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698