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

Side by Side Diff: chrome/browser/sync/notifier/sync_notifier.h

Issue 7745040: [Sync] Make P2PNotifier behave more like InvalidationNotifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copyright Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Interface to the sync notifier, which is an object that receives 5 // Interface to the sync notifier, which is an object that receives
6 // notifications when updates are available for a set of sync types. 6 // notifications when updates are available for a set of sync types.
7 // All the observers are notified when such an event happens. 7 // All the observers are notified when such an event happens.
8 8
9 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_ 9 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_
10 #define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_ 10 #define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_
(...skipping 21 matching lines...) Expand all
32 // SetState must be called once, before any call to 32 // SetState must be called once, before any call to
33 // UpdateCredentials. 33 // UpdateCredentials.
34 virtual void SetState(const std::string& state) = 0; 34 virtual void SetState(const std::string& state) = 0;
35 35
36 // The observers won't be notified of any notifications until 36 // The observers won't be notified of any notifications until
37 // UpdateCredentials is called at least once. It can be called more than 37 // UpdateCredentials is called at least once. It can be called more than
38 // once. 38 // once.
39 virtual void UpdateCredentials( 39 virtual void UpdateCredentials(
40 const std::string& email, const std::string& token) = 0; 40 const std::string& email, const std::string& token) = 0;
41 41
42 virtual void UpdateEnabledTypes(const syncable::ModelTypeSet& types) = 0; 42 virtual void UpdateEnabledTypes(
43 const syncable::ModelTypeSet& enabled_types) = 0;
43 44
44 // This is here only to support the old p2p notification implementation, 45 // This is here only to support the old p2p notification implementation,
45 // which is still used by sync integration tests. 46 // which is still used by sync integration tests.
46 // TODO(akalin): Remove this once we move the integration tests off p2p 47 // TODO(akalin): Remove this once we move the integration tests off p2p
47 // notifications. 48 // notifications.
48 virtual void SendNotification() = 0; 49 virtual void SendNotification(
50 const syncable::ModelTypeSet& changed_types) = 0;
49 }; 51 };
50 } // namespace sync_notifier 52 } // namespace sync_notifier
51 53
52 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_ 54 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_
53 55
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/p2p_notifier_unittest.cc ('k') | chrome/browser/sync/notifier/sync_notifier_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698