| OLD | NEW |
| 1 // Copyright 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 #include "components/sync_bookmarks/bookmark_change_processor.h" | 5 #include "components/sync_bookmarks/bookmark_change_processor.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <stack> | 10 #include <stack> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "components/undo/bookmark_undo_service.h" | 31 #include "components/undo/bookmark_undo_service.h" |
| 32 #include "components/undo/bookmark_undo_utils.h" | 32 #include "components/undo/bookmark_undo_utils.h" |
| 33 #include "ui/gfx/favicon_size.h" | 33 #include "ui/gfx/favicon_size.h" |
| 34 #include "ui/gfx/image/image_util.h" | 34 #include "ui/gfx/image/image_util.h" |
| 35 | 35 |
| 36 using bookmarks::BookmarkModel; | 36 using bookmarks::BookmarkModel; |
| 37 using bookmarks::BookmarkNode; | 37 using bookmarks::BookmarkNode; |
| 38 using syncer::ChangeRecord; | 38 using syncer::ChangeRecord; |
| 39 using syncer::ChangeRecordList; | 39 using syncer::ChangeRecordList; |
| 40 | 40 |
| 41 namespace browser_sync { | 41 namespace sync_bookmarks { |
| 42 | 42 |
| 43 static const char kMobileBookmarksTag[] = "synced_bookmarks"; | 43 static const char kMobileBookmarksTag[] = "synced_bookmarks"; |
| 44 | 44 |
| 45 BookmarkChangeProcessor::BookmarkChangeProcessor( | 45 BookmarkChangeProcessor::BookmarkChangeProcessor( |
| 46 sync_driver::SyncClient* sync_client, | 46 sync_driver::SyncClient* sync_client, |
| 47 BookmarkModelAssociator* model_associator, | 47 BookmarkModelAssociator* model_associator, |
| 48 std::unique_ptr<syncer::DataTypeErrorHandler> err_handler) | 48 std::unique_ptr<syncer::DataTypeErrorHandler> err_handler) |
| 49 : sync_driver::ChangeProcessor(std::move(err_handler)), | 49 : sync_driver::ChangeProcessor(std::move(err_handler)), |
| 50 bookmark_model_(NULL), | 50 bookmark_model_(NULL), |
| 51 sync_client_(sync_client), | 51 sync_client_(sync_client), |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 favicon_bytes->size()); | 970 favicon_bytes->size()); |
| 971 updated_specifics.set_icon_url(bookmark_node->icon_url().spec()); | 971 updated_specifics.set_icon_url(bookmark_node->icon_url().spec()); |
| 972 sync_node->SetBookmarkSpecifics(updated_specifics); | 972 sync_node->SetBookmarkSpecifics(updated_specifics); |
| 973 } | 973 } |
| 974 } | 974 } |
| 975 | 975 |
| 976 bool BookmarkChangeProcessor::CanSyncNode(const BookmarkNode* node) { | 976 bool BookmarkChangeProcessor::CanSyncNode(const BookmarkNode* node) { |
| 977 return bookmark_model_->client()->CanSyncNode(node); | 977 return bookmark_model_->client()->CanSyncNode(node); |
| 978 } | 978 } |
| 979 | 979 |
| 980 } // namespace browser_sync | 980 } // namespace sync_bookmarks |
| OLD | NEW |