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

Side by Side Diff: components/sync/engine_impl/directory_update_handler.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Fix tools and iOS. Created 4 years, 2 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 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" 15 #include "components/sync/engine_impl/process_updates_util.h"
16 #include "components/sync/engine_impl/update_applicator.h" 16 #include "components/sync/engine_impl/update_applicator.h"
17 #include "components/sync/syncable/directory.h" 17 #include "components/sync/syncable/directory.h"
18 #include "components/sync/syncable/model_neutral_mutable_entry.h" 18 #include "components/sync/syncable/model_neutral_mutable_entry.h"
19 #include "components/sync/syncable/syncable_changes_version.h" 19 #include "components/sync/syncable/syncable_changes_version.h"
20 #include "components/sync/syncable/syncable_model_neutral_write_transaction.h" 20 #include "components/sync/syncable/syncable_model_neutral_write_transaction.h"
21 #include "components/sync/syncable/syncable_write_transaction.h" 21 #include "components/sync/syncable/syncable_write_transaction.h"
22 22
23 namespace syncer { 23 namespace syncer {
24 24
25 using syncable::SYNCER; 25 using syncer::syncable::SYNCER;
26 26
27 DirectoryUpdateHandler::DirectoryUpdateHandler( 27 DirectoryUpdateHandler::DirectoryUpdateHandler(
28 syncable::Directory* dir, 28 syncable::Directory* dir,
29 ModelType type, 29 ModelType type,
30 scoped_refptr<ModelSafeWorker> worker, 30 scoped_refptr<ModelSafeWorker> worker,
31 DirectoryTypeDebugInfoEmitter* debug_info_emitter) 31 DirectoryTypeDebugInfoEmitter* debug_info_emitter)
32 : dir_(dir), 32 : dir_(dir),
33 type_(type), 33 type_(type),
34 worker_(worker), 34 worker_(worker),
35 debug_info_emitter_(debug_info_emitter) {} 35 debug_info_emitter_(debug_info_emitter) {}
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 new_gc_directive.version_watermark())) { 303 new_gc_directive.version_watermark())) {
304 ExpireEntriesByVersion(dir_, trans, type_, 304 ExpireEntriesByVersion(dir_, trans, type_,
305 new_gc_directive.version_watermark()); 305 new_gc_directive.version_watermark());
306 } 306 }
307 307
308 cached_gc_directive_.reset( 308 cached_gc_directive_.reset(
309 new sync_pb::GarbageCollectionDirective(new_gc_directive)); 309 new sync_pb::GarbageCollectionDirective(new_gc_directive));
310 } 310 }
311 311
312 } // namespace syncer 312 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698