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

Side by Side Diff: sync/notifier/invalidation_state_tracker.cc

Issue 11415049: Implement features needed for local ack handling in InvalidationStateTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ...... Created 8 years 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
« no previous file with comments | « sync/notifier/invalidation_state_tracker.h ('k') | sync/notifier/p2p_invalidator_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "sync/notifier/invalidation_state_tracker.h" 5 #include "sync/notifier/invalidation_state_tracker.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 8
9 InvalidationState::InvalidationState()
10 : version(kint64min),
11 expected(AckHandle::InvalidAckHandle()),
12 current(AckHandle::InvalidAckHandle()) {
13 }
14
15 InvalidationState::~InvalidationState() {
16 }
17
9 bool operator==(const InvalidationState& lhs, const InvalidationState& rhs) { 18 bool operator==(const InvalidationState& lhs, const InvalidationState& rhs) {
10 return lhs.version == rhs.version; 19 return lhs.version == rhs.version &&
20 lhs.expected.Equals(rhs.expected) &&
21 lhs.current.Equals(rhs.current);
11 } 22 }
12 23
13 } // namespace syncer 24 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/invalidation_state_tracker.h ('k') | sync/notifier/p2p_invalidator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698