| 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_ENGINE_WORKER_ENTITY_TRACKER_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_WORKER_ENTITY_TRACKER_H_ |
| 6 #define SYNC_ENGINE_WORKER_ENTITY_TRACKER_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_WORKER_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/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "sync/base/sync_export.h" | 15 #include "components/sync/base/sync_export.h" |
| 16 #include "sync/protocol/sync.pb.h" | 16 #include "components/sync/protocol/sync.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 // Manages the pending commit and update state for an entity on the sync | 23 // Manages the pending commit and update state for an entity on the sync |
| 24 // thread. | 24 // thread. |
| 25 // | 25 // |
| 26 // It should be considered a helper class internal to the | 26 // It should be considered a helper class internal to the |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // An update for this entity which can't be applied right now. The presence | 115 // An update for this entity which can't be applied right now. The presence |
| 116 // of an pending update prevents commits. As of this writing, the only | 116 // of an pending update prevents commits. As of this writing, the only |
| 117 // source of pending updates is updates that can't currently be decrypted. | 117 // source of pending updates is updates that can't currently be decrypted. |
| 118 std::unique_ptr<UpdateResponseData> encrypted_update_; | 118 std::unique_ptr<UpdateResponseData> encrypted_update_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(WorkerEntityTracker); | 120 DISALLOW_COPY_AND_ASSIGN(WorkerEntityTracker); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace syncer_v2 | 123 } // namespace syncer_v2 |
| 124 | 124 |
| 125 #endif // SYNC_ENGINE_WORKER_ENTITY_TRACKER_H_ | 125 #endif // COMPONENTS_SYNC_ENGINE_IMPL_WORKER_ENTITY_TRACKER_H_ |
| OLD | NEW |