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_CHANGE_PROCESSOR_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_H_ |
6 #define COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_H_ | 6 #define COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_H_ |
7 | 7 |
8 #include "components/sync_driver/data_type_error_handler.h" | 8 #include "components/sync_driver/data_type_error_handler.h" |
9 #include "sync/internal_api/public/base_transaction.h" | 9 #include "sync/internal_api/public/base_transaction.h" |
10 #include "sync/internal_api/public/change_record.h" | 10 #include "sync/internal_api/public/change_record.h" |
11 #include "sync/internal_api/public/user_share.h" | 11 #include "sync/internal_api/public/user_share.h" |
12 | 12 |
13 namespace syncer { | 13 namespace syncer { |
14 class UnrecoverableErrorHandler; | 14 class UnrecoverableErrorHandler; |
15 } // namespace syncer | 15 } // namespace syncer |
16 | 16 |
17 namespace browser_sync { | 17 namespace sync_driver { |
18 | 18 |
19 class ModelAssociator; | 19 class ModelAssociator; |
20 | 20 |
21 // An interface used to apply changes from the sync model to the browser's | 21 // An interface used to apply changes from the sync model to the browser's |
22 // native model. This does not currently distinguish between model data types. | 22 // native model. This does not currently distinguish between model data types. |
23 class ChangeProcessor { | 23 class ChangeProcessor { |
24 public: | 24 public: |
25 explicit ChangeProcessor(DataTypeErrorHandler* error_handler); | 25 explicit ChangeProcessor(DataTypeErrorHandler* error_handler); |
26 virtual ~ChangeProcessor(); | 26 virtual ~ChangeProcessor(); |
27 | 27 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 private: | 77 private: |
78 DataTypeErrorHandler* error_handler_; // Guaranteed to outlive us. | 78 DataTypeErrorHandler* error_handler_; // Guaranteed to outlive us. |
79 | 79 |
80 // The sync model we are processing changes from. | 80 // The sync model we are processing changes from. |
81 syncer::UserShare* share_handle_; | 81 syncer::UserShare* share_handle_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(ChangeProcessor); | 83 DISALLOW_COPY_AND_ASSIGN(ChangeProcessor); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace browser_sync | 86 } // namespace sync_driver |
87 | 87 |
88 #endif // COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_H_ | 88 #endif // COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_H_ |
OLD | NEW |