OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/notifier/single_object_invalidation_set.h" | 5 #include "components/invalidation/single_object_invalidation_set.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "sync/notifier/invalidation_util.h" | 8 #include "sync/internal_api/public/base/invalidation_util.h" |
9 | 9 |
10 namespace syncer { | 10 namespace syncer { |
11 | 11 |
12 SingleObjectInvalidationSet::SingleObjectInvalidationSet() {} | 12 SingleObjectInvalidationSet::SingleObjectInvalidationSet() {} |
13 | 13 |
14 SingleObjectInvalidationSet::~SingleObjectInvalidationSet() {} | 14 SingleObjectInvalidationSet::~SingleObjectInvalidationSet() {} |
15 | 15 |
16 void SingleObjectInvalidationSet::Insert(const Invalidation& invalidation) { | 16 void SingleObjectInvalidationSet::Insert(const Invalidation& invalidation) { |
17 invalidations_.insert(invalidation); | 17 invalidations_.insert(invalidation); |
18 } | 18 } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 if (!invalidation) { | 106 if (!invalidation) { |
107 DLOG(WARNING) << "Failed to parse invalidation at index " << i; | 107 DLOG(WARNING) << "Failed to parse invalidation at index " << i; |
108 return false; | 108 return false; |
109 } | 109 } |
110 invalidations_.insert(*invalidation); | 110 invalidations_.insert(*invalidation); |
111 } | 111 } |
112 return true; | 112 return true; |
113 } | 113 } |
114 | 114 |
115 } // namespace syncer | 115 } // namespace syncer |
OLD | NEW |