| 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 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  Loading... | 
|   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  Loading... | 
|  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_ | 
| OLD | NEW |