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_CORE_PROCESSOR_ENTITY_TRACKER_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_ |
6 #define COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_ | 6 #define COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "components/sync/api/entity_data.h" | 14 #include "components/sync/model/entity_data.h" |
15 #include "components/sync/protocol/entity_metadata.pb.h" | 15 #include "components/sync/protocol/entity_metadata.pb.h" |
16 | 16 |
17 namespace syncer { | 17 namespace syncer { |
18 struct CommitRequestData; | 18 struct CommitRequestData; |
19 struct CommitResponseData; | 19 struct CommitResponseData; |
20 struct UpdateResponseData; | 20 struct UpdateResponseData; |
21 | 21 |
22 // This class is used by the SharedModelTypeProcessor to track the state of each | 22 // This class is used by the SharedModelTypeProcessor to track the state of each |
23 // entity with its type. It can be considered a helper class internal to the | 23 // entity with its type. It can be considered a helper class internal to the |
24 // processor. It manages the metadata for its entity and caches entity data | 24 // processor. It manages the metadata for its entity and caches entity data |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // The data is reset once commit confirmation is received. | 144 // The data is reset once commit confirmation is received. |
145 EntityDataPtr commit_data_; | 145 EntityDataPtr commit_data_; |
146 | 146 |
147 // The sequence number of the last item sent to the sync thread. | 147 // The sequence number of the last item sent to the sync thread. |
148 int64_t commit_requested_sequence_number_; | 148 int64_t commit_requested_sequence_number_; |
149 }; | 149 }; |
150 | 150 |
151 } // namespace syncer | 151 } // namespace syncer |
152 | 152 |
153 #endif // COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_ | 153 #endif // COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_ |
OLD | NEW |