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

Side by Side Diff: sync/internal_api/public/base/invalidation.h

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add dep on dynamic_annotations (see crbug.com/392532) Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_H_
6 #define SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 // Factory functions. 28 // Factory functions.
29 static Invalidation Init( 29 static Invalidation Init(
30 const invalidation::ObjectId& id, 30 const invalidation::ObjectId& id,
31 int64 version, 31 int64 version,
32 const std::string& payload); 32 const std::string& payload);
33 static Invalidation InitUnknownVersion(const invalidation::ObjectId& id); 33 static Invalidation InitUnknownVersion(const invalidation::ObjectId& id);
34 static Invalidation InitFromDroppedInvalidation(const Invalidation& dropped); 34 static Invalidation InitFromDroppedInvalidation(const Invalidation& dropped);
35 static scoped_ptr<Invalidation> InitFromValue( 35 static scoped_ptr<Invalidation> InitFromValue(
36 const base::DictionaryValue& value); 36 const base::DictionaryValue& value);
37 37
38 Invalidation(const Invalidation& other); 38 Invalidation(const Invalidation& other);
maniscalco 2014/07/16 17:44:46 Not changing in this CL, but do we need our own co
39 ~Invalidation(); 39 ~Invalidation();
40 Invalidation& operator=(const Invalidation& other);
maniscalco 2014/07/16 17:44:46 Similar to my question about the cctor, do we need
40 41
41 // Compares two invalidations. The comparison ignores ack-tracking state. 42 // Compares two invalidations. The comparison ignores ack-tracking state.
42 bool Equals(const Invalidation& other) const; 43 bool Equals(const Invalidation& other) const;
43 44
44 invalidation::ObjectId object_id() const; 45 invalidation::ObjectId object_id() const;
45 bool is_unknown_version() const; 46 bool is_unknown_version() const;
46 47
47 // Safe to call only if is_unknown_version() returns false. 48 // Safe to call only if is_unknown_version() returns false.
48 int64 version() const; 49 int64 version() const;
49 50
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 std::string payload_; 115 std::string payload_;
115 116
116 // A locally generated unique ID used to manage local acknowledgements. 117 // A locally generated unique ID used to manage local acknowledgements.
117 AckHandle ack_handle_; 118 AckHandle ack_handle_;
118 syncer::WeakHandle<AckHandler> ack_handler_; 119 syncer::WeakHandle<AckHandler> ack_handler_;
119 }; 120 };
120 121
121 } // namespace syncer 122 } // namespace syncer
122 123
123 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_H_ 124 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698