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

Side by Side Diff: sync/notifier/p2p_notifier.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
« no previous file with comments | « sync/notifier/notifications_disabled_reason.cc ('k') | sync/notifier/p2p_notifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // A notifier that uses p2p notifications based on XMPP push 5 // A notifier that uses p2p notifications based on XMPP push
6 // notifications. Used only for sync integration tests. 6 // notifications. Used only for sync integration tests.
7 7
8 #ifndef SYNC_NOTIFIER_P2P_NOTIFIER_H_ 8 #ifndef SYNC_NOTIFIER_P2P_NOTIFIER_H_
9 #define SYNC_NOTIFIER_P2P_NOTIFIER_H_ 9 #define SYNC_NOTIFIER_P2P_NOTIFIER_H_
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/observer_list.h" 17 #include "base/observer_list.h"
18 #include "base/threading/thread_checker.h" 18 #include "base/threading/thread_checker.h"
19 #include "jingle/notifier/listener/push_client_observer.h" 19 #include "jingle/notifier/listener/push_client_observer.h"
20 #include "sync/internal_api/public/syncable/model_type.h" 20 #include "sync/internal_api/public/syncable/model_type.h"
21 #include "sync/notifier/notifications_disabled_reason.h" 21 #include "sync/notifier/notifications_disabled_reason.h"
22 #include "sync/notifier/sync_notifier.h" 22 #include "sync/notifier/sync_notifier.h"
23 23
24 namespace notifier { 24 namespace notifier {
25 class PushClient; 25 class PushClient;
26 } // namespace notifier 26 } // namespace notifier
27 27
28 namespace csync { 28 namespace syncer {
29 29
30 // The channel to use for sync notifications. 30 // The channel to use for sync notifications.
31 extern const char* kSyncP2PNotificationChannel; 31 extern const char* kSyncP2PNotificationChannel;
32 32
33 // The intended recipient(s) of a P2P notification. 33 // The intended recipient(s) of a P2P notification.
34 enum P2PNotificationTarget { 34 enum P2PNotificationTarget {
35 NOTIFY_SELF, 35 NOTIFY_SELF,
36 FIRST_NOTIFICATION_TARGET = NOTIFY_SELF, 36 FIRST_NOTIFICATION_TARGET = NOTIFY_SELF,
37 NOTIFY_OTHERS, 37 NOTIFY_OTHERS,
38 NOTIFY_ALL, 38 NOTIFY_ALL,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 std::string unique_id_; 130 std::string unique_id_;
131 // Whether we have called UpdateCredentials() yet. 131 // Whether we have called UpdateCredentials() yet.
132 bool logged_in_; 132 bool logged_in_;
133 bool notifications_enabled_; 133 bool notifications_enabled_;
134 // Which set of clients should be sent notifications. 134 // Which set of clients should be sent notifications.
135 P2PNotificationTarget send_notification_target_; 135 P2PNotificationTarget send_notification_target_;
136 136
137 syncable::ModelTypeSet enabled_types_; 137 syncable::ModelTypeSet enabled_types_;
138 }; 138 };
139 139
140 } // namespace csync 140 } // namespace syncer
141 141
142 #endif // SYNC_NOTIFIER_P2P_NOTIFIER_H_ 142 #endif // SYNC_NOTIFIER_P2P_NOTIFIER_H_
OLDNEW
« no previous file with comments | « sync/notifier/notifications_disabled_reason.cc ('k') | sync/notifier/p2p_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698