Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: components/invalidation/public/single_object_invalidation_set.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_PUBLIC_SINGLE_OBJECT_INVALIDATION_SET_H_ 5 #ifndef COMPONENTS_INVALIDATION_PUBLIC_SINGLE_OBJECT_INVALIDATION_SET_H_
6 #define COMPONENTS_INVALIDATION_PUBLIC_SINGLE_OBJECT_INVALIDATION_SET_H_ 6 #define COMPONENTS_INVALIDATION_PUBLIC_SINGLE_OBJECT_INVALIDATION_SET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 14 matching lines...) Expand all
25 // The list is kept sorted by version to make it easier to perform common 25 // The list is kept sorted by version to make it easier to perform common
26 // operations, like checking for an unknown version invalidation or fetching the 26 // operations, like checking for an unknown version invalidation or fetching the
27 // highest invalidation with the highest version number. 27 // highest invalidation with the highest version number.
28 class INVALIDATION_EXPORT SingleObjectInvalidationSet { 28 class INVALIDATION_EXPORT SingleObjectInvalidationSet {
29 public: 29 public:
30 typedef std::set<Invalidation, InvalidationVersionLessThan> InvalidationsSet; 30 typedef std::set<Invalidation, InvalidationVersionLessThan> InvalidationsSet;
31 typedef InvalidationsSet::const_iterator const_iterator; 31 typedef InvalidationsSet::const_iterator const_iterator;
32 typedef InvalidationsSet::const_reverse_iterator const_reverse_iterator; 32 typedef InvalidationsSet::const_reverse_iterator const_reverse_iterator;
33 33
34 SingleObjectInvalidationSet(); 34 SingleObjectInvalidationSet();
35 SingleObjectInvalidationSet(const SingleObjectInvalidationSet& other);
35 ~SingleObjectInvalidationSet(); 36 ~SingleObjectInvalidationSet();
36 37
37 void Insert(const Invalidation& invalidation); 38 void Insert(const Invalidation& invalidation);
38 void InsertAll(const SingleObjectInvalidationSet& other); 39 void InsertAll(const SingleObjectInvalidationSet& other);
39 void Clear(); 40 void Clear();
40 void Erase(const_iterator it); 41 void Erase(const_iterator it);
41 42
42 // Returns true if this list contains an unknown version. 43 // Returns true if this list contains an unknown version.
43 // 44 //
44 // Unknown version invalidations always end up at the start of the list, 45 // Unknown version invalidations always end up at the start of the list,
(...skipping 12 matching lines...) Expand all
57 scoped_ptr<base::ListValue> ToValue() const; 58 scoped_ptr<base::ListValue> ToValue() const;
58 bool ResetFromValue(const base::ListValue& list); 59 bool ResetFromValue(const base::ListValue& list);
59 60
60 private: 61 private:
61 InvalidationsSet invalidations_; 62 InvalidationsSet invalidations_;
62 }; 63 };
63 64
64 } // syncer 65 } // syncer
65 66
66 #endif // COMPONENTS_INVALIDATION_PUBLIC_SINGLE_OBJECT_INVALIDATION_SET_H_ 67 #endif // COMPONENTS_INVALIDATION_PUBLIC_SINGLE_OBJECT_INVALIDATION_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698