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/engine_impl/directory_update_handler.h" | 5 #include "components/sync/engine_impl/directory_update_handler.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "components/sync/base/data_type_histogram.h" | 11 #include "components/sync/base/data_type_histogram.h" |
12 #include "components/sync/engine_impl/conflict_resolver.h" | 12 #include "components/sync/engine_impl/conflict_resolver.h" |
13 #include "components/sync/engine_impl/cycle/directory_type_debug_info_emitter.h" | 13 #include "components/sync/engine_impl/cycle/directory_type_debug_info_emitter.h" |
14 #include "components/sync/engine_impl/cycle/status_controller.h" | 14 #include "components/sync/engine_impl/cycle/status_controller.h" |
15 #include "components/sync/engine_impl/process_updates_util.h" | |
16 #include "components/sync/engine_impl/update_applicator.h" | 15 #include "components/sync/engine_impl/update_applicator.h" |
17 #include "components/sync/syncable/directory.h" | 16 #include "components/sync/syncable/directory.h" |
18 #include "components/sync/syncable/model_neutral_mutable_entry.h" | 17 #include "components/sync/syncable/model_neutral_mutable_entry.h" |
19 #include "components/sync/syncable/syncable_changes_version.h" | 18 #include "components/sync/syncable/syncable_changes_version.h" |
20 #include "components/sync/syncable/syncable_model_neutral_write_transaction.h" | 19 #include "components/sync/syncable/syncable_model_neutral_write_transaction.h" |
21 #include "components/sync/syncable/syncable_write_transaction.h" | 20 #include "components/sync/syncable/syncable_write_transaction.h" |
22 | 21 |
23 namespace syncer { | 22 namespace syncer { |
24 | 23 |
25 using syncable::SYNCER; | 24 using syncable::SYNCER; |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 new_gc_directive.version_watermark())) { | 302 new_gc_directive.version_watermark())) { |
304 ExpireEntriesByVersion(dir_, trans, type_, | 303 ExpireEntriesByVersion(dir_, trans, type_, |
305 new_gc_directive.version_watermark()); | 304 new_gc_directive.version_watermark()); |
306 } | 305 } |
307 | 306 |
308 cached_gc_directive_.reset( | 307 cached_gc_directive_.reset( |
309 new sync_pb::GarbageCollectionDirective(new_gc_directive)); | 308 new sync_pb::GarbageCollectionDirective(new_gc_directive)); |
310 } | 309 } |
311 | 310 |
312 } // namespace syncer | 311 } // namespace syncer |
OLD | NEW |