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_ENGINE_IMPL_WORKER_ENTITY_TRACKER_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_WORKER_ENTITY_TRACKER_H_ |
6 #define COMPONENTS_SYNC_ENGINE_IMPL_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 "components/sync/core/non_blocking_sync_common.h" | 15 #include "components/sync/engine/non_blocking_sync_common.h" |
16 #include "components/sync/protocol/sync.pb.h" | 16 #include "components/sync/protocol/sync.pb.h" |
17 | 17 |
18 namespace syncer { | 18 namespace syncer { |
19 | 19 |
20 // Manages the pending commit and update state for an entity on the sync | 20 // Manages the pending commit and update state for an entity on the sync |
21 // thread. | 21 // thread. |
22 // | 22 // |
23 // It should be considered a helper class internal to the | 23 // It should be considered a helper class internal to the |
24 // ModelTypeWorker. | 24 // ModelTypeWorker. |
25 // | 25 // |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // of an pending update prevents commits. As of this writing, the only | 115 // of an pending update prevents commits. As of this writing, the only |
116 // source of pending updates is updates that can't currently be decrypted. | 116 // source of pending updates is updates that can't currently be decrypted. |
117 std::unique_ptr<UpdateResponseData> encrypted_update_; | 117 std::unique_ptr<UpdateResponseData> encrypted_update_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(WorkerEntityTracker); | 119 DISALLOW_COPY_AND_ASSIGN(WorkerEntityTracker); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace syncer | 122 } // namespace syncer |
123 | 123 |
124 #endif // COMPONENTS_SYNC_ENGINE_IMPL_WORKER_ENTITY_TRACKER_H_ | 124 #endif // COMPONENTS_SYNC_ENGINE_IMPL_WORKER_ENTITY_TRACKER_H_ |
OLD | NEW |