Get foreground tab on Android
[chromium-blink-merge.git] / sync / notifier / invalidation_state_tracker.cc
blob335f3b2a61db1460d973d155a7d0247c74f47ac1
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
3 // found in the LICENSE file.
5 #include "sync/notifier/invalidation_state_tracker.h"
7 namespace syncer {
9 InvalidationState::InvalidationState()
10 : version(kint64min),
11 expected(AckHandle::InvalidAckHandle()),
12 current(AckHandle::InvalidAckHandle()) {
15 InvalidationState::~InvalidationState() {
18 bool operator==(const InvalidationState& lhs, const InvalidationState& rhs) {
19 return lhs.version == rhs.version &&
20 lhs.expected.Equals(rhs.expected) &&
21 lhs.current.Equals(rhs.current);
24 } // namespace syncer