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 <stddef.h> | |
8 #include <stdint.h> | |
9 | |
10 #include <algorithm> | 7 #include <algorithm> |
11 | 8 |
12 #include "base/values.h" | 9 #include "base/values.h" |
13 #include "components/sync/core/non_blocking_sync_common.h" | 10 #include "components/sync/core/non_blocking_sync_common.h" |
14 #include "components/sync/engine_impl/model_type_worker.h" | 11 #include "components/sync/engine_impl/model_type_worker.h" |
15 #include "components/sync/protocol/proto_value_conversions.h" | 12 #include "components/sync/protocol/proto_value_conversions.h" |
16 | 13 |
17 namespace syncer_v2 { | 14 namespace syncer_v2 { |
18 | 15 |
19 NonBlockingTypeCommitContribution::NonBlockingTypeCommitContribution( | 16 NonBlockingTypeCommitContribution::NonBlockingTypeCommitContribution( |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // We could inform our parent NonBlockingCommitContributor that a commit is | 108 // We could inform our parent NonBlockingCommitContributor that a commit is |
112 // no longer in progress. The current implementation doesn't really care | 109 // no longer in progress. The current implementation doesn't really care |
113 // either way, so we don't bother sending the signal. | 110 // either way, so we don't bother sending the signal. |
114 } | 111 } |
115 | 112 |
116 size_t NonBlockingTypeCommitContribution::GetNumEntries() const { | 113 size_t NonBlockingTypeCommitContribution::GetNumEntries() const { |
117 return entities_.size(); | 114 return entities_.size(); |
118 } | 115 } |
119 | 116 |
120 } // namespace syncer_v2 | 117 } // namespace syncer_v2 |
OLD | NEW |