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

Side by Side Diff: components/sync/driver/generic_change_processor.h

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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 COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_H_
6 #define COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_H_ 6 #define COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 17 matching lines...) Expand all
28 class SyncClient; 28 class SyncClient;
29 class SyncData; 29 class SyncData;
30 class SyncableService; 30 class SyncableService;
31 class WriteNode; 31 class WriteNode;
32 class WriteTransaction; 32 class WriteTransaction;
33 33
34 namespace syncable { 34 namespace syncable {
35 class Entry; 35 class Entry;
36 } // namespace syncable 36 } // namespace syncable
37 37
38 typedef std::vector<SyncData> SyncDataList; 38 using SyncDataList = std::vector<SyncData>;
39 39
40 // Datatype agnostic change processor. One instance of GenericChangeProcessor 40 // Datatype agnostic change processor. One instance of GenericChangeProcessor
41 // is created for each datatype and lives on the datatype's sequence. It then 41 // is created for each datatype and lives on the datatype's sequence. It then
42 // handles all interaction with the sync api, both translating pushes from the 42 // handles all interaction with the sync api, both translating pushes from the
43 // local service into transactions and receiving changes from the sync model, 43 // local service into transactions and receiving changes from the sync model,
44 // which then get converted into SyncChange's and sent to the local service. 44 // which then get converted into SyncChange's and sent to the local service.
45 // 45 //
46 // As a rule, the GenericChangeProcessor is not thread safe, and should only 46 // As a rule, the GenericChangeProcessor is not thread safe, and should only
47 // be used on the same sequence in which it was created. 47 // be used on the same sequence in which it was created.
48 class GenericChangeProcessor : public ChangeProcessor, 48 class GenericChangeProcessor : public ChangeProcessor,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 attachment_service_weak_ptr_factory_; 186 attachment_service_weak_ptr_factory_;
187 AttachmentServiceProxy attachment_service_proxy_; 187 AttachmentServiceProxy attachment_service_proxy_;
188 base::WeakPtrFactory<GenericChangeProcessor> weak_ptr_factory_; 188 base::WeakPtrFactory<GenericChangeProcessor> weak_ptr_factory_;
189 189
190 DISALLOW_COPY_AND_ASSIGN(GenericChangeProcessor); 190 DISALLOW_COPY_AND_ASSIGN(GenericChangeProcessor);
191 }; 191 };
192 192
193 } // namespace syncer 193 } // namespace syncer
194 194
195 #endif // COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_H_ 195 #endif // COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « components/sync/driver/data_type_status_table.h ('k') | components/sync/driver/glue/sync_backend_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698