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 "components/sync/engine_impl/non_blocking_type_commit_contribution.h" | 5 #include "components/sync/engine_impl/non_blocking_type_commit_contribution.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "components/sync/core/non_blocking_sync_common.h" | 10 #include "components/sync/engine/non_blocking_sync_common.h" |
11 #include "components/sync/engine_impl/model_type_worker.h" | 11 #include "components/sync/engine_impl/model_type_worker.h" |
12 #include "components/sync/protocol/proto_value_conversions.h" | 12 #include "components/sync/protocol/proto_value_conversions.h" |
13 | 13 |
14 namespace syncer { | 14 namespace syncer { |
15 | 15 |
16 NonBlockingTypeCommitContribution::NonBlockingTypeCommitContribution( | 16 NonBlockingTypeCommitContribution::NonBlockingTypeCommitContribution( |
17 const sync_pb::DataTypeContext& context, | 17 const sync_pb::DataTypeContext& context, |
18 const google::protobuf::RepeatedPtrField<sync_pb::SyncEntity>& entities, | 18 const google::protobuf::RepeatedPtrField<sync_pb::SyncEntity>& entities, |
19 ModelTypeWorker* worker) | 19 ModelTypeWorker* worker) |
20 : worker_(worker), | 20 : worker_(worker), |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // We could inform our parent NonBlockingCommitContributor that a commit is | 108 // We could inform our parent NonBlockingCommitContributor that a commit is |
109 // no longer in progress. The current implementation doesn't really care | 109 // no longer in progress. The current implementation doesn't really care |
110 // either way, so we don't bother sending the signal. | 110 // either way, so we don't bother sending the signal. |
111 } | 111 } |
112 | 112 |
113 size_t NonBlockingTypeCommitContribution::GetNumEntries() const { | 113 size_t NonBlockingTypeCommitContribution::GetNumEntries() const { |
114 return entities_.size(); | 114 return entities_.size(); |
115 } | 115 } |
116 | 116 |
117 } // namespace syncer | 117 } // namespace syncer |
OLD | NEW |