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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 "sync/engine/model_type_worker.h" 5 #include "components/sync/engine_impl/model_type_worker.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/format_macros.h" 14 #include "base/format_macros.h"
15 #include "base/guid.h" 15 #include "base/guid.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/memory/ptr_util.h" 17 #include "base/memory/ptr_util.h"
18 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
19 #include "sync/engine/commit_contribution.h" 19 #include "components/sync/base/cryptographer.h"
20 #include "sync/engine/non_blocking_type_commit_contribution.h" 20 #include "components/sync/base/time.h"
21 #include "sync/engine/worker_entity_tracker.h" 21 #include "components/sync/core/model_type_processor.h"
22 #include "sync/internal_api/public/model_type_processor.h" 22 #include "components/sync/engine_impl/commit_contribution.h"
23 #include "sync/syncable/syncable_util.h" 23 #include "components/sync/engine_impl/non_blocking_type_commit_contribution.h"
24 #include "sync/util/cryptographer.h" 24 #include "components/sync/engine_impl/worker_entity_tracker.h"
25 #include "sync/util/time.h" 25 #include "components/sync/syncable/syncable_util.h"
26 26
27 namespace syncer_v2 { 27 namespace syncer_v2 {
28 28
29 using syncer::CommitContribution; 29 using syncer::CommitContribution;
30 using syncer::Cryptographer; 30 using syncer::Cryptographer;
31 using syncer::ModelType; 31 using syncer::ModelType;
32 using syncer::NudgeHandler; 32 using syncer::NudgeHandler;
33 using syncer::SyncerError; 33 using syncer::SyncerError;
34 34
35 ModelTypeWorker::ModelTypeWorker( 35 ModelTypeWorker::ModelTypeWorker(
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 return entity_ptr; 431 return entity_ptr;
432 } 432 }
433 433
434 WorkerEntityTracker* ModelTypeWorker::GetOrCreateEntityTracker( 434 WorkerEntityTracker* ModelTypeWorker::GetOrCreateEntityTracker(
435 const EntityData& data) { 435 const EntityData& data) {
436 WorkerEntityTracker* entity = GetEntityTracker(data.client_tag_hash); 436 WorkerEntityTracker* entity = GetEntityTracker(data.client_tag_hash);
437 return entity ? entity : CreateEntityTracker(data); 437 return entity ? entity : CreateEntityTracker(data);
438 } 438 }
439 439
440 } // namespace syncer_v2 440 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « components/sync/engine_impl/model_type_worker.h ('k') | components/sync/engine_impl/model_type_worker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698