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

Side by Side Diff: components/sync/core/shared_model_type_processor.h

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 #ifndef SYNC_INTERNAL_API_PUBLIC_SHARED_MODEL_TYPE_PROCESSOR_H_ 5 #ifndef COMPONENTS_SYNC_CORE_SHARED_MODEL_TYPE_PROCESSOR_H_
6 #define SYNC_INTERNAL_API_PUBLIC_SHARED_MODEL_TYPE_PROCESSOR_H_ 6 #define COMPONENTS_SYNC_CORE_SHARED_MODEL_TYPE_PROCESSOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <unordered_set> 11 #include <unordered_set>
12 12
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/threading/non_thread_safe.h" 14 #include "base/threading/non_thread_safe.h"
15 #include "sync/api/data_batch.h" 15 #include "components/sync/api/data_batch.h"
16 #include "sync/api/metadata_batch.h" 16 #include "components/sync/api/metadata_batch.h"
17 #include "sync/api/metadata_change_list.h" 17 #include "components/sync/api/metadata_change_list.h"
18 #include "sync/api/model_type_change_processor.h" 18 #include "components/sync/api/model_type_change_processor.h"
19 #include "sync/api/model_type_service.h" 19 #include "components/sync/api/model_type_service.h"
20 #include "sync/api/sync_error.h" 20 #include "components/sync/api/sync_error.h"
21 #include "sync/base/sync_export.h" 21 #include "components/sync/base/model_type.h"
22 #include "sync/internal_api/public/base/model_type.h" 22 #include "components/sync/base/sync_export.h"
23 #include "sync/internal_api/public/data_type_error_handler.h" 23 #include "components/sync/core/data_type_error_handler.h"
24 #include "sync/internal_api/public/model_type_processor.h" 24 #include "components/sync/core/model_type_processor.h"
25 #include "sync/internal_api/public/non_blocking_sync_common.h" 25 #include "components/sync/core/non_blocking_sync_common.h"
26 #include "sync/protocol/data_type_state.pb.h" 26 #include "components/sync/protocol/data_type_state.pb.h"
27 #include "sync/protocol/sync.pb.h" 27 #include "components/sync/protocol/sync.pb.h"
28 28
29 namespace syncer_v2 { 29 namespace syncer_v2 {
30 struct ActivationContext; 30 struct ActivationContext;
31 class CommitQueue; 31 class CommitQueue;
32 class ProcessorEntityTracker; 32 class ProcessorEntityTracker;
33 33
34 // A sync component embedded on the synced type's thread that helps to handle 34 // A sync component embedded on the synced type's thread that helps to handle
35 // communication between sync and model type threads. 35 // communication between sync and model type threads.
36 class SYNC_EXPORT SharedModelTypeProcessor : public ModelTypeProcessor, 36 class SYNC_EXPORT SharedModelTypeProcessor : public ModelTypeProcessor,
37 public ModelTypeChangeProcessor, 37 public ModelTypeChangeProcessor,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // The object used for informing sync of errors; will be non-null after 169 // The object used for informing sync of errors; will be non-null after
170 // OnSyncStarting has been called. This pointer is not owned. 170 // OnSyncStarting has been called. This pointer is not owned.
171 syncer::DataTypeErrorHandler* error_handler_; 171 syncer::DataTypeErrorHandler* error_handler_;
172 172
173 // WeakPtrFactory for this processor which will be sent to sync thread. 173 // WeakPtrFactory for this processor which will be sent to sync thread.
174 base::WeakPtrFactory<SharedModelTypeProcessor> weak_ptr_factory_; 174 base::WeakPtrFactory<SharedModelTypeProcessor> weak_ptr_factory_;
175 }; 175 };
176 176
177 } // namespace syncer_v2 177 } // namespace syncer_v2
178 178
179 #endif // SYNC_INTERNAL_API_PUBLIC_SHARED_MODEL_TYPE_PROCESSOR_H_ 179 #endif // COMPONENTS_SYNC_CORE_SHARED_MODEL_TYPE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « components/sync/core/read_transaction.cc ('k') | components/sync/core/shared_model_type_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698