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

Side by Side Diff: sync/notifier/notifications_disabled_reason.h

Issue 10874096: [Sync] Rework Invalidator-related unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix one more Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef SYNC_NOTIFIER_NOTIFICATIONS_DISABLED_REASON_H_ 5 #ifndef SYNC_NOTIFIER_NOTIFICATIONS_DISABLED_REASON_H_
6 #define SYNC_NOTIFIER_NOTIFICATIONS_DISABLED_REASON_H_ 6 #define SYNC_NOTIFIER_NOTIFICATIONS_DISABLED_REASON_H_
7 7
8 #include "jingle/notifier/listener/push_client_observer.h" 8 #include "jingle/notifier/listener/push_client_observer.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 enum NotificationsDisabledReason { 12 enum NotificationsDisabledReason {
13 // There is an underlying transient problem (e.g., network- or 13 // There is an underlying transient problem (e.g., network- or
14 // XMPP-related). 14 // XMPP-related).
15 TRANSIENT_NOTIFICATION_ERROR, 15 TRANSIENT_NOTIFICATION_ERROR,
16 DEFAULT_NOTIFICATION_ERROR = TRANSIENT_NOTIFICATION_ERROR, 16 DEFAULT_NOTIFICATION_ERROR = TRANSIENT_NOTIFICATION_ERROR,
17 // Our credentials have been rejected. 17 // Our credentials have been rejected.
18 NOTIFICATION_CREDENTIALS_REJECTED, 18 NOTIFICATION_CREDENTIALS_REJECTED,
19 // No error (useful as a default value or to avoid keeping a 19 // No error (useful as a default value or to avoid keeping a
20 // separate bool for notifications enabled/disabled). 20 // separate bool for notifications enabled/disabled).
21 NO_NOTIFICATION_ERROR 21 NO_NOTIFICATION_ERROR
22 }; 22 };
23 23
24 const char* NotificationsDisabledReasonToString( 24 const char* NotificationsDisabledReasonToString(
25 NotificationsDisabledReason reason); 25 NotificationsDisabledReason reason);
26 26
27 NotificationsDisabledReason FromNotifierReason( 27 NotificationsDisabledReason FromNotifierReason(
28 notifier::NotificationsDisabledReason reason); 28 notifier::NotificationsDisabledReason reason);
29 29
30 notifier::NotificationsDisabledReason ToNotifierReasonForTest(
31 NotificationsDisabledReason reason);
32
30 } // namespace syncer 33 } // namespace syncer
31 34
32 #endif // SYNC_NOTIFIER_NOTIFICATIONS_DISABLED_REASON_H_ 35 #endif // SYNC_NOTIFIER_NOTIFICATIONS_DISABLED_REASON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698