Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / invalidation / impl / notifier_reason_util.h
blob9576b3cc880e22abe4478d1b59f737d033fce21c
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_INVALIDATION_IMPL_NOTIFIER_REASON_UTIL_H_
6 #define COMPONENTS_INVALIDATION_IMPL_NOTIFIER_REASON_UTIL_H_
8 #include "components/invalidation/public/invalidator_state.h"
9 #include "jingle/notifier/listener/push_client_observer.h"
11 namespace syncer {
13 InvalidatorState FromNotifierReason(
14 notifier::NotificationsDisabledReason reason);
16 // Should not be called when |state| == INVALIDATIONS_ENABLED.
17 notifier::NotificationsDisabledReason
18 ToNotifierReasonForTest(InvalidatorState state);
20 } // namespace syncer
22 #endif // COMPONENTS_INVALIDATION_IMPL_NOTIFIER_REASON_UTIL_H_