summaryrefslogtreecommitdiffstats
path: root/components/invalidation/notifier_reason_util.h
blob: 16025baf9abca922b34d81a450ea0930c994001d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_INVALIDATION_NOTIFIER_REASON_UTIL_H_
#define COMPONENTS_INVALIDATION_NOTIFIER_REASON_UTIL_H_

#include "components/invalidation/invalidator_state.h"
#include "jingle/notifier/listener/push_client_observer.h"

namespace syncer {

InvalidatorState FromNotifierReason(
    notifier::NotificationsDisabledReason reason);

// Should not be called when |state| == INVALIDATIONS_ENABLED.
notifier::NotificationsDisabledReason
    ToNotifierReasonForTest(InvalidatorState state);

}  // namespace syncer

#endif  // COMPONENTS_INVALIDATION_NOTIFIER_REASON_UTIL_H_