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

Side by Side Diff: components/sync_bookmarks/bookmark_change_processor.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 months 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
OLDNEW
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" 24 #include "components/sync/core/change_record.h"
25 #include "components/sync/core/read_node.h" 25 #include "components/sync/core/read_node.h"
26 #include "components/sync/core/write_node.h" 26 #include "components/sync/core/write_node.h"
27 #include "components/sync/core/write_transaction.h" 27 #include "components/sync/core/write_transaction.h"
28 #include "components/sync/driver/sync_client.h"
28 #include "components/sync/syncable/entry.h" // TODO(tim): Investigating bug 121 587. 29 #include "components/sync/syncable/entry.h" // TODO(tim): Investigating bug 121 587.
29 #include "components/sync/syncable/syncable_write_transaction.h" 30 #include "components/sync/syncable/syncable_write_transaction.h"
30 #include "components/sync_driver/sync_client.h"
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
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « components/sync_bookmarks/bookmark_change_processor.h ('k') | components/sync_bookmarks/bookmark_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698