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

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

Issue 10451060: sync: migrate invalidation state from syncable::Directory to InvalidationStorage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include order Created 8 years, 6 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 // 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
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // notification. See crbug.com/97780. 91 // notification. See crbug.com/97780.
92 P2PNotifier(scoped_ptr<notifier::PushClient> push_client, 92 P2PNotifier(scoped_ptr<notifier::PushClient> push_client,
93 P2PNotificationTarget send_notification_target); 93 P2PNotificationTarget send_notification_target);
94 94
95 virtual ~P2PNotifier(); 95 virtual ~P2PNotifier();
96 96
97 // SyncNotifier implementation 97 // SyncNotifier implementation
98 virtual void AddObserver(SyncNotifierObserver* observer) OVERRIDE; 98 virtual void AddObserver(SyncNotifierObserver* observer) OVERRIDE;
99 virtual void RemoveObserver(SyncNotifierObserver* observer) OVERRIDE; 99 virtual void RemoveObserver(SyncNotifierObserver* observer) OVERRIDE;
100 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; 100 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE;
101 virtual void SetState(const std::string& state) OVERRIDE; 101 virtual void SetStateDeprecated(const std::string& state) OVERRIDE;
102 virtual void UpdateCredentials( 102 virtual void UpdateCredentials(
103 const std::string& email, const std::string& token) OVERRIDE; 103 const std::string& email, const std::string& token) OVERRIDE;
104 virtual void UpdateEnabledTypes( 104 virtual void UpdateEnabledTypes(
105 syncable::ModelTypeSet enabled_types) OVERRIDE; 105 syncable::ModelTypeSet enabled_types) OVERRIDE;
106 virtual void SendNotification( 106 virtual void SendNotification(
107 syncable::ModelTypeSet changed_types) OVERRIDE; 107 syncable::ModelTypeSet changed_types) OVERRIDE;
108 108
109 // PushClientObserver implementation. 109 // PushClientObserver implementation.
110 virtual void OnNotificationStateChange(bool notifications_enabled) OVERRIDE; 110 virtual void OnNotificationStateChange(bool notifications_enabled) OVERRIDE;
111 virtual void OnIncomingNotification( 111 virtual void OnIncomingNotification(
(...skipping 20 matching lines...) Expand all
132 bool notifications_enabled_; 132 bool notifications_enabled_;
133 // Which set of clients should be sent notifications. 133 // Which set of clients should be sent notifications.
134 P2PNotificationTarget send_notification_target_; 134 P2PNotificationTarget send_notification_target_;
135 135
136 syncable::ModelTypeSet enabled_types_; 136 syncable::ModelTypeSet enabled_types_;
137 }; 137 };
138 138
139 } // namespace sync_notifier 139 } // namespace sync_notifier
140 140
141 #endif // SYNC_NOTIFIER_P2P_NOTIFIER_H_ 141 #endif // SYNC_NOTIFIER_P2P_NOTIFIER_H_
OLDNEW
« no previous file with comments | « sync/notifier/non_blocking_invalidation_notifier_unittest.cc ('k') | sync/notifier/p2p_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698