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 #include "sync/engine/worker_entity_tracker.h" | 5 #include "components/sync/engine_impl/worker_entity_tracker.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "sync/internal_api/public/base/model_type.h" | 10 #include "components/sync/base/model_type.h" |
11 #include "sync/internal_api/public/non_blocking_sync_common.h" | 11 #include "components/sync/base/time.h" |
12 #include "sync/syncable/syncable_util.h" | 12 #include "components/sync/core/non_blocking_sync_common.h" |
13 #include "sync/util/time.h" | 13 #include "components/sync/syncable/syncable_util.h" |
14 | 14 |
15 namespace syncer_v2 { | 15 namespace syncer_v2 { |
16 | 16 |
17 WorkerEntityTracker::WorkerEntityTracker(const std::string& id, | 17 WorkerEntityTracker::WorkerEntityTracker(const std::string& id, |
18 const std::string& client_tag_hash) | 18 const std::string& client_tag_hash) |
19 : id_(id), | 19 : id_(id), |
20 client_tag_hash_(client_tag_hash), | 20 client_tag_hash_(client_tag_hash), |
21 highest_commit_response_version_(0), | 21 highest_commit_response_version_(0), |
22 highest_gu_response_version_(0), | 22 highest_gu_response_version_(0), |
23 sequence_number_(0), | 23 sequence_number_(0), |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 bool WorkerEntityTracker::IsServerKnown() const { | 191 bool WorkerEntityTracker::IsServerKnown() const { |
192 return base_version_ != kUncommittedVersion; | 192 return base_version_ != kUncommittedVersion; |
193 } | 193 } |
194 | 194 |
195 void WorkerEntityTracker::ClearPendingCommit() { | 195 void WorkerEntityTracker::ClearPendingCommit() { |
196 pending_commit_.reset(); | 196 pending_commit_.reset(); |
197 pending_commit_specifics_hash_.clear(); | 197 pending_commit_specifics_hash_.clear(); |
198 } | 198 } |
199 | 199 |
200 } // namespace syncer_v2 | 200 } // namespace syncer_v2 |
OLD | NEW |