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

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

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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 #pragma once 7 #pragma once
8 8
9 #include "jingle/notifier/listener/push_client_observer.h" 9 #include "jingle/notifier/listener/push_client_observer.h"
10 10
11 namespace csync { 11 namespace syncer {
12 12
13 enum NotificationsDisabledReason { 13 enum NotificationsDisabledReason {
14 // There is an underlying transient problem (e.g., network- or 14 // There is an underlying transient problem (e.g., network- or
15 // XMPP-related). 15 // XMPP-related).
16 TRANSIENT_NOTIFICATION_ERROR, 16 TRANSIENT_NOTIFICATION_ERROR,
17 DEFAULT_NOTIFICATION_ERROR = TRANSIENT_NOTIFICATION_ERROR, 17 DEFAULT_NOTIFICATION_ERROR = TRANSIENT_NOTIFICATION_ERROR,
18 // Our credentials have been rejected. 18 // Our credentials have been rejected.
19 NOTIFICATION_CREDENTIALS_REJECTED, 19 NOTIFICATION_CREDENTIALS_REJECTED,
20 // No error (useful as a default value or to avoid keeping a 20 // No error (useful as a default value or to avoid keeping a
21 // separate bool for notifications enabled/disabled). 21 // separate bool for notifications enabled/disabled).
22 NO_NOTIFICATION_ERROR 22 NO_NOTIFICATION_ERROR
23 }; 23 };
24 24
25 const char* NotificationsDisabledReasonToString( 25 const char* NotificationsDisabledReasonToString(
26 NotificationsDisabledReason reason); 26 NotificationsDisabledReason reason);
27 27
28 NotificationsDisabledReason FromNotifierReason( 28 NotificationsDisabledReason FromNotifierReason(
29 notifier::NotificationsDisabledReason reason); 29 notifier::NotificationsDisabledReason reason);
30 30
31 } // namespace csync 31 } // namespace syncer
32 32
33 #endif // SYNC_NOTIFIER_NOTIFICATIONS_DISABLED_REASON_H_ 33 #endif // SYNC_NOTIFIER_NOTIFICATIONS_DISABLED_REASON_H_
OLDNEW
« no previous file with comments | « sync/notifier/non_blocking_invalidation_notifier_unittest.cc ('k') | sync/notifier/notifications_disabled_reason.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698