OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/driver/generic_change_processor.h" | 5 #include "components/sync/driver/generic_change_processor.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "components/sync/base/unrecoverable_error_handler.h" | 16 #include "components/sync/base/unrecoverable_error_handler.h" |
17 #include "components/sync/core/base_node.h" | |
18 #include "components/sync/core/change_record.h" | |
19 #include "components/sync/core/read_node.h" | |
20 #include "components/sync/core/read_transaction.h" | |
21 #include "components/sync/core/write_node.h" | |
22 #include "components/sync/core/write_transaction.h" | |
23 #include "components/sync/driver/sync_api_component_factory.h" | 17 #include "components/sync/driver/sync_api_component_factory.h" |
24 #include "components/sync/driver/sync_client.h" | 18 #include "components/sync/driver/sync_client.h" |
25 #include "components/sync/model/local_change_observer.h" | 19 #include "components/sync/model/local_change_observer.h" |
26 #include "components/sync/model/sync_change.h" | 20 #include "components/sync/model/sync_change.h" |
27 #include "components/sync/model/sync_error.h" | 21 #include "components/sync/model/sync_error.h" |
28 #include "components/sync/model/syncable_service.h" | 22 #include "components/sync/model/syncable_service.h" |
| 23 #include "components/sync/syncable/base_node.h" |
| 24 #include "components/sync/syncable/change_record.h" |
29 #include "components/sync/syncable/entry.h" // TODO(tim): Bug 123674. | 25 #include "components/sync/syncable/entry.h" // TODO(tim): Bug 123674. |
| 26 #include "components/sync/syncable/read_node.h" |
| 27 #include "components/sync/syncable/read_transaction.h" |
| 28 #include "components/sync/syncable/write_node.h" |
| 29 #include "components/sync/syncable/write_transaction.h" |
30 | 30 |
31 namespace syncer { | 31 namespace syncer { |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 const int kContextSizeLimit = 1024; // Datatype context size limit. | 35 const int kContextSizeLimit = 1024; // Datatype context size limit. |
36 | 36 |
37 void SetNodeSpecifics(const sync_pb::EntitySpecifics& entity_specifics, | 37 void SetNodeSpecifics(const sync_pb::EntitySpecifics& entity_specifics, |
38 WriteNode* write_node) { | 38 WriteNode* write_node) { |
39 if (GetModelTypeFromSpecifics(entity_specifics) == PASSWORDS) { | 39 if (GetModelTypeFromSpecifics(entity_specifics) == PASSWORDS) { |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 OnLocalChange(current_entry, change)); | 697 OnLocalChange(current_entry, change)); |
698 } | 698 } |
699 | 699 |
700 std::unique_ptr<AttachmentService> | 700 std::unique_ptr<AttachmentService> |
701 GenericChangeProcessor::GetAttachmentService() const { | 701 GenericChangeProcessor::GetAttachmentService() const { |
702 return std::unique_ptr<AttachmentService>( | 702 return std::unique_ptr<AttachmentService>( |
703 new AttachmentServiceProxy(attachment_service_proxy_)); | 703 new AttachmentServiceProxy(attachment_service_proxy_)); |
704 } | 704 } |
705 | 705 |
706 } // namespace syncer | 706 } // namespace syncer |
OLD | NEW |