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

Unified Diff: components/invalidation/notifier_reason_util.h

Issue 294123004: Move some sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/invalidation/notifier_reason_util.h
diff --git a/components/invalidation/notifier_reason_util.h b/components/invalidation/notifier_reason_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..530cbb8f1f7a594dedbaa494cb37695cce8ed0a0
--- /dev/null
+++ b/components/invalidation/notifier_reason_util.h
@@ -0,0 +1,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 "jingle/notifier/listener/push_client_observer.h"
+#include "sync/internal_api/public/base/invalidator_state.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_
« no previous file with comments | « components/invalidation/non_blocking_invalidator_unittest.cc ('k') | components/invalidation/notifier_reason_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698