| OLD | NEW |
| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // |topmost_node_id|. | 199 // |topmost_node_id|. |
| 200 void RemoveAllChildNodes(syncer::WriteTransaction* trans, | 200 void RemoveAllChildNodes(syncer::WriteTransaction* trans, |
| 201 const int64& topmost_node_id); | 201 const int64& topmost_node_id); |
| 202 | 202 |
| 203 // Remove all the sync nodes associated with |node| and its children. | 203 // Remove all the sync nodes associated with |node| and its children. |
| 204 void RemoveSyncNodeHierarchy(const BookmarkNode* node); | 204 void RemoveSyncNodeHierarchy(const BookmarkNode* node); |
| 205 | 205 |
| 206 // Creates or updates a sync node associated with |node|. | 206 // Creates or updates a sync node associated with |node|. |
| 207 void CreateOrUpdateSyncNode(const BookmarkNode* node); | 207 void CreateOrUpdateSyncNode(const BookmarkNode* node); |
| 208 | 208 |
| 209 // Returns false if |node| should not be synced. |
| 210 bool CanSyncNode(const BookmarkNode* node); |
| 211 |
| 209 // The bookmark model we are processing changes from. Non-NULL when | 212 // The bookmark model we are processing changes from. Non-NULL when |
| 210 // |running_| is true. | 213 // |running_| is true. |
| 211 BookmarkModel* bookmark_model_; | 214 BookmarkModel* bookmark_model_; |
| 212 | 215 |
| 213 Profile* profile_; | 216 Profile* profile_; |
| 214 | 217 |
| 215 // The two models should be associated according to this ModelAssociator. | 218 // The two models should be associated according to this ModelAssociator. |
| 216 BookmarkModelAssociator* model_associator_; | 219 BookmarkModelAssociator* model_associator_; |
| 217 | 220 |
| 218 DISALLOW_COPY_AND_ASSIGN(BookmarkChangeProcessor); | 221 DISALLOW_COPY_AND_ASSIGN(BookmarkChangeProcessor); |
| 219 }; | 222 }; |
| 220 | 223 |
| 221 } // namespace browser_sync | 224 } // namespace browser_sync |
| 222 | 225 |
| 223 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_ | 226 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_ |
| OLD | NEW |