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 <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "base/format_macros.h" | 12 #include "base/format_macros.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.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/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "components/bookmarks/browser/bookmark_client.h" | 21 #include "components/bookmarks/browser/bookmark_client.h" |
22 #include "components/bookmarks/browser/bookmark_model.h" | 22 #include "components/bookmarks/browser/bookmark_model.h" |
| 23 #include "components/sync/api/sync_error.h" |
| 24 #include "components/sync/api/sync_merge_result.h" |
| 25 #include "components/sync/base/cryptographer.h" |
| 26 #include "components/sync/base/data_type_histogram.h" |
| 27 #include "components/sync/core/delete_journal.h" |
| 28 #include "components/sync/core/read_node.h" |
| 29 #include "components/sync/core/read_transaction.h" |
| 30 #include "components/sync/core/write_node.h" |
| 31 #include "components/sync/core/write_transaction.h" |
| 32 #include "components/sync/core_impl/syncapi_internal.h" |
| 33 #include "components/sync/syncable/entry.h" |
| 34 #include "components/sync/syncable/syncable_write_transaction.h" |
23 #include "components/sync_bookmarks/bookmark_change_processor.h" | 35 #include "components/sync_bookmarks/bookmark_change_processor.h" |
24 #include "components/sync_driver/sync_client.h" | 36 #include "components/sync_driver/sync_client.h" |
25 #include "components/undo/bookmark_undo_service.h" | 37 #include "components/undo/bookmark_undo_service.h" |
26 #include "components/undo/bookmark_undo_utils.h" | 38 #include "components/undo/bookmark_undo_utils.h" |
27 #include "sync/api/sync_error.h" | |
28 #include "sync/api/sync_merge_result.h" | |
29 #include "sync/internal_api/public/delete_journal.h" | |
30 #include "sync/internal_api/public/read_node.h" | |
31 #include "sync/internal_api/public/read_transaction.h" | |
32 #include "sync/internal_api/public/write_node.h" | |
33 #include "sync/internal_api/public/write_transaction.h" | |
34 #include "sync/internal_api/syncapi_internal.h" | |
35 #include "sync/syncable/entry.h" | |
36 #include "sync/syncable/syncable_write_transaction.h" | |
37 #include "sync/util/cryptographer.h" | |
38 #include "sync/util/data_type_histogram.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 browser_sync { |
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 |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 browser_sync |
OLD | NEW |