| 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 #ifndef SYNC_ENGINE_MODEL_TYPE_WORKER_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_MODEL_TYPE_WORKER_H_ | 
| 6 #define SYNC_ENGINE_MODEL_TYPE_WORKER_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_MODEL_TYPE_WORKER_H_ | 
| 7 | 7 | 
| 8 #include <stddef.h> | 8 #include <stddef.h> | 
| 9 | 9 | 
| 10 #include <map> | 10 #include <map> | 
| 11 #include <memory> | 11 #include <memory> | 
| 12 #include <string> | 12 #include <string> | 
| 13 | 13 | 
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" | 
| 15 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" | 
| 16 #include "sync/base/sync_export.h" | 16 #include "components/sync/base/cryptographer.h" | 
| 17 #include "sync/engine/commit_contributor.h" | 17 #include "components/sync/base/model_type.h" | 
| 18 #include "sync/engine/commit_queue.h" | 18 #include "components/sync/base/sync_export.h" | 
| 19 #include "sync/engine/nudge_handler.h" | 19 #include "components/sync/core/non_blocking_sync_common.h" | 
| 20 #include "sync/engine/update_handler.h" | 20 #include "components/sync/core/sync_encryption_handler.h" | 
| 21 #include "sync/internal_api/public/base/model_type.h" | 21 #include "components/sync/engine_impl/commit_contributor.h" | 
| 22 #include "sync/internal_api/public/non_blocking_sync_common.h" | 22 #include "components/sync/engine_impl/commit_queue.h" | 
| 23 #include "sync/internal_api/public/sync_encryption_handler.h" | 23 #include "components/sync/engine_impl/nudge_handler.h" | 
| 24 #include "sync/protocol/data_type_state.pb.h" | 24 #include "components/sync/engine_impl/update_handler.h" | 
| 25 #include "sync/protocol/sync.pb.h" | 25 #include "components/sync/protocol/data_type_state.pb.h" | 
| 26 #include "sync/util/cryptographer.h" | 26 #include "components/sync/protocol/sync.pb.h" | 
| 27 | 27 | 
| 28 namespace base { | 28 namespace base { | 
| 29 class SingleThreadTaskRunner; | 29 class SingleThreadTaskRunner; | 
| 30 } | 30 } | 
| 31 | 31 | 
| 32 namespace syncer_v2 { | 32 namespace syncer_v2 { | 
| 33 | 33 | 
| 34 class ModelTypeProcessor; | 34 class ModelTypeProcessor; | 
| 35 class WorkerEntityTracker; | 35 class WorkerEntityTracker; | 
| 36 | 36 | 
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 178 | 178 | 
| 179   // Accumulates all the updates from a single GetUpdates cycle in memory so | 179   // Accumulates all the updates from a single GetUpdates cycle in memory so | 
| 180   // they can all be sent to the processor at once. | 180   // they can all be sent to the processor at once. | 
| 181   UpdateResponseDataList pending_updates_; | 181   UpdateResponseDataList pending_updates_; | 
| 182 | 182 | 
| 183   base::WeakPtrFactory<ModelTypeWorker> weak_ptr_factory_; | 183   base::WeakPtrFactory<ModelTypeWorker> weak_ptr_factory_; | 
| 184 }; | 184 }; | 
| 185 | 185 | 
| 186 }  // namespace syncer_v2 | 186 }  // namespace syncer_v2 | 
| 187 | 187 | 
| 188 #endif  // SYNC_ENGINE_MODEL_TYPE_WORKER_H_ | 188 #endif  // COMPONENTS_SYNC_ENGINE_IMPL_MODEL_TYPE_WORKER_H_ | 
| OLD | NEW | 
|---|