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> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "components/bookmarks/browser/bookmark_client.h" | 19 #include "components/bookmarks/browser/bookmark_client.h" |
20 #include "components/bookmarks/browser/bookmark_model.h" | 20 #include "components/bookmarks/browser/bookmark_model.h" |
21 #include "components/bookmarks/browser/bookmark_utils.h" | 21 #include "components/bookmarks/browser/bookmark_utils.h" |
22 #include "components/favicon/core/favicon_service.h" | 22 #include "components/favicon/core/favicon_service.h" |
23 #include "components/history/core/browser/history_service.h" | 23 #include "components/history/core/browser/history_service.h" |
| 24 #include "components/sync/core/change_record.h" |
| 25 #include "components/sync/core/read_node.h" |
| 26 #include "components/sync/core/write_node.h" |
| 27 #include "components/sync/core/write_transaction.h" |
| 28 #include "components/sync/syncable/entry.h" // TODO(tim): Investigating bug 121
587. |
| 29 #include "components/sync/syncable/syncable_write_transaction.h" |
24 #include "components/sync_driver/sync_client.h" | 30 #include "components/sync_driver/sync_client.h" |
25 #include "components/undo/bookmark_undo_service.h" | 31 #include "components/undo/bookmark_undo_service.h" |
26 #include "components/undo/bookmark_undo_utils.h" | 32 #include "components/undo/bookmark_undo_utils.h" |
27 #include "sync/internal_api/public/change_record.h" | |
28 #include "sync/internal_api/public/read_node.h" | |
29 #include "sync/internal_api/public/write_node.h" | |
30 #include "sync/internal_api/public/write_transaction.h" | |
31 #include "sync/syncable/entry.h" // TODO(tim): Investigating bug 121587. | |
32 #include "sync/syncable/syncable_write_transaction.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 browser_sync { |
42 | 42 |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 browser_sync |
OLD | NEW |