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 COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_CHANGE_PROCESSOR_H_ | 5 #ifndef COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_CHANGE_PROCESSOR_H_ |
6 #define COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_CHANGE_PROCESSOR_H_ | 6 #define COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_CHANGE_PROCESSOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 BookmarkModelAssociator* associator); | 236 BookmarkModelAssociator* associator); |
237 | 237 |
238 // Creates or updates a sync node associated with |node|. | 238 // Creates or updates a sync node associated with |node|. |
239 void CreateOrUpdateSyncNode(const bookmarks::BookmarkNode* node); | 239 void CreateOrUpdateSyncNode(const bookmarks::BookmarkNode* node); |
240 | 240 |
241 // Returns false if |node| should not be synced. | 241 // Returns false if |node| should not be synced. |
242 bool CanSyncNode(const bookmarks::BookmarkNode* node); | 242 bool CanSyncNode(const bookmarks::BookmarkNode* node); |
243 | 243 |
244 base::ThreadChecker thread_checker_; | 244 base::ThreadChecker thread_checker_; |
245 | 245 |
246 // The bookmark model we are processing changes from. Non-NULL when | 246 // The bookmark model we are processing changes from. Non-null when |
247 // |running_| is true. | 247 // |running_| is true. |
248 bookmarks::BookmarkModel* bookmark_model_; | 248 bookmarks::BookmarkModel* bookmark_model_; |
249 | 249 |
250 syncer::SyncClient* sync_client_; | 250 syncer::SyncClient* sync_client_; |
251 | 251 |
252 // The two models should be associated according to this ModelAssociator. | 252 // The two models should be associated according to this ModelAssociator. |
253 BookmarkModelAssociator* model_associator_; | 253 BookmarkModelAssociator* model_associator_; |
254 | 254 |
255 DISALLOW_COPY_AND_ASSIGN(BookmarkChangeProcessor); | 255 DISALLOW_COPY_AND_ASSIGN(BookmarkChangeProcessor); |
256 }; | 256 }; |
257 | 257 |
258 } // namespace sync_bookmarks | 258 } // namespace sync_bookmarks |
259 | 259 |
260 #endif // COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_CHANGE_PROCESSOR_H_ | 260 #endif // COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_CHANGE_PROCESSOR_H_ |
OLD | NEW |