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_model_associator.h" | 5 #include "components/sync_bookmarks/bookmark_model_associator.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "components/sync/driver/sync_client.h" | 33 #include "components/sync/driver/sync_client.h" |
34 #include "components/sync/syncable/entry.h" | 34 #include "components/sync/syncable/entry.h" |
35 #include "components/sync/syncable/syncable_write_transaction.h" | 35 #include "components/sync/syncable/syncable_write_transaction.h" |
36 #include "components/sync_bookmarks/bookmark_change_processor.h" | 36 #include "components/sync_bookmarks/bookmark_change_processor.h" |
37 #include "components/undo/bookmark_undo_service.h" | 37 #include "components/undo/bookmark_undo_service.h" |
38 #include "components/undo/bookmark_undo_utils.h" | 38 #include "components/undo/bookmark_undo_utils.h" |
39 | 39 |
40 using bookmarks::BookmarkModel; | 40 using bookmarks::BookmarkModel; |
41 using bookmarks::BookmarkNode; | 41 using bookmarks::BookmarkNode; |
42 | 42 |
43 namespace browser_sync { | 43 namespace sync_bookmarks { |
44 | 44 |
45 // The sync protocol identifies top-level entities by means of well-known tags, | 45 // The sync protocol identifies top-level entities by means of well-known tags, |
46 // which should not be confused with titles. Each tag corresponds to a | 46 // which should not be confused with titles. Each tag corresponds to a |
47 // singleton instance of a particular top-level node in a user's share; the | 47 // singleton instance of a particular top-level node in a user's share; the |
48 // tags are consistent across users. The tags allow us to locate the specific | 48 // tags are consistent across users. The tags allow us to locate the specific |
49 // folders whose contents we care about synchronizing, without having to do a | 49 // folders whose contents we care about synchronizing, without having to do a |
50 // lookup by name or path. The tags should not be made user-visible. | 50 // lookup by name or path. The tags should not be made user-visible. |
51 // For example, the tag "bookmark_bar" represents the permanent node for | 51 // For example, the tag "bookmark_bar" represents the permanent node for |
52 // bookmarks bar in Chrome. The tag "other_bookmarks" represents the permanent | 52 // bookmarks bar in Chrome. The tag "other_bookmarks" represents the permanent |
53 // folder Other Bookmarks in Chrome. | 53 // folder Other Bookmarks in Chrome. |
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 message, | 1008 message, |
1009 syncer::BOOKMARKS); | 1009 syncer::BOOKMARKS); |
1010 } else { | 1010 } else { |
1011 context->set_native_model_sync_state(BEHIND); | 1011 context->set_native_model_sync_state(BEHIND); |
1012 } | 1012 } |
1013 } | 1013 } |
1014 } | 1014 } |
1015 return syncer::SyncError(); | 1015 return syncer::SyncError(); |
1016 } | 1016 } |
1017 | 1017 |
1018 } // namespace browser_sync | 1018 } // namespace sync_bookmarks |
OLD | NEW |