| 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 SYNC_INTERNAL_API_PUBLIC_PROCESSOR_ENTITY_TRACKER_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_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 "sync/api/entity_data.h" | 14 #include "components/sync/api/entity_data.h" |
| 15 #include "sync/base/sync_export.h" | 15 #include "components/sync/base/sync_export.h" |
| 16 #include "sync/protocol/entity_metadata.pb.h" | 16 #include "components/sync/protocol/entity_metadata.pb.h" |
| 17 | 17 |
| 18 namespace syncer_v2 { | 18 namespace syncer_v2 { |
| 19 struct CommitRequestData; | 19 struct CommitRequestData; |
| 20 struct CommitResponseData; | 20 struct CommitResponseData; |
| 21 struct UpdateResponseData; | 21 struct UpdateResponseData; |
| 22 | 22 |
| 23 // This class is used by the SharedModelTypeProcessor to track the state of each | 23 // This class is used by the SharedModelTypeProcessor to track the state of each |
| 24 // entity with its type. It can be considered a helper class internal to the | 24 // entity with its type. It can be considered a helper class internal to the |
| 25 // processor. It manages the metadata for its entity and caches entity data | 25 // processor. It manages the metadata for its entity and caches entity data |
| 26 // upon a local change until commit confirmation is received. | 26 // upon a local change until commit confirmation is received. |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Sync data that exists for items being committed only. | 144 // Sync data that exists for items being committed only. |
| 145 // The data is reset once commit confirmation is received. | 145 // The data is reset once commit confirmation is received. |
| 146 EntityDataPtr commit_data_; | 146 EntityDataPtr commit_data_; |
| 147 | 147 |
| 148 // The sequence number of the last item sent to the sync thread. | 148 // The sequence number of the last item sent to the sync thread. |
| 149 int64_t commit_requested_sequence_number_; | 149 int64_t commit_requested_sequence_number_; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace syncer_v2 | 152 } // namespace syncer_v2 |
| 153 | 153 |
| 154 #endif // SYNC_INTERNAL_API_PUBLIC_PROCESSOR_ENTITY_TRACKER_H_ | 154 #endif // COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_ |
| OLD | NEW |