| 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_INVALIDATION_SINGLE_OBJECT_INVALIDATION_SET_H_ | 5 #ifndef COMPONENTS_INVALIDATION_SINGLE_OBJECT_INVALIDATION_SET_H_ |
| 6 #define COMPONENTS_INVALIDATION_SINGLE_OBJECT_INVALIDATION_SET_H_ | 6 #define COMPONENTS_INVALIDATION_SINGLE_OBJECT_INVALIDATION_SET_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "components/invalidation/invalidation.h" |
| 11 #include "components/invalidation/invalidation_export.h" | 12 #include "components/invalidation/invalidation_export.h" |
| 12 #include "sync/internal_api/public/base/invalidation.h" | 13 #include "components/invalidation/invalidation_util.h" |
| 13 #include "sync/internal_api/public/base/invalidation_util.h" | |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class ListValue; | 16 class ListValue; |
| 17 } // namespace base | 17 } // namespace base |
| 18 | 18 |
| 19 namespace syncer { | 19 namespace syncer { |
| 20 | 20 |
| 21 // Holds a list of invalidations that all share the same Object ID. | 21 // Holds a list of invalidations that all share the same Object ID. |
| 22 // | 22 // |
| 23 // The list is kept sorted by version to make it easier to perform common | 23 // The list is kept sorted by version to make it easier to perform common |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 scoped_ptr<base::ListValue> ToValue() const; | 55 scoped_ptr<base::ListValue> ToValue() const; |
| 56 bool ResetFromValue(const base::ListValue& list); | 56 bool ResetFromValue(const base::ListValue& list); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 InvalidationsSet invalidations_; | 59 InvalidationsSet invalidations_; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // syncer | 62 } // syncer |
| 63 | 63 |
| 64 #endif // COMPONENTS_INVALIDATION_SINGLE_OBJECT_INVALIDATION_SET_H_ | 64 #endif // COMPONENTS_INVALIDATION_SINGLE_OBJECT_INVALIDATION_SET_H_ |
| OLD | NEW |