Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 // | |
| 5 // Interface to the sync notifier. | |
|
akalin
2011/03/10 04:26:45
Expand this comment, maybe something like:
Interf
Agrawal
2011/03/11 01:13:07
Done.
| |
| 6 | |
| 7 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_ | |
| 8 #define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_ | |
| 9 | |
| 10 #include <string> | |
| 11 | |
| 12 #include "chrome/browser/sync/notifier/sync_notifier_observer.h" | |
|
akalin
2011/03/10 04:26:45
forward-declare SyncNotifierObserver
Agrawal
2011/03/11 01:13:07
Done.
| |
| 13 #include "chrome/browser/sync/syncable/model_type.h" | |
| 14 | |
| 15 namespace sync_notifier { | |
| 16 | |
| 17 class SyncNotifier { | |
| 18 public: | |
| 19 SyncNotifier() {} | |
| 20 virtual ~SyncNotifier() {} | |
| 21 | |
| 22 virtual void AddObserver(SyncNotifierObserver* observer) = 0; | |
| 23 virtual void RemoveObserver(SyncNotifierObserver* observer) = 0; | |
| 24 | |
| 25 virtual void Login( | |
|
akalin
2011/03/10 04:26:45
See comment in syncapi.cc re. changing Login() to
Agrawal
2011/03/11 01:13:07
Done.
| |
| 26 const std::string& email, const std::string& token, | |
| 27 const std::string& state) = 0; | |
| 28 | |
| 29 virtual void UpdateEnabledTypes(const syncable::ModelTypeSet& types) = 0; | |
| 30 virtual void SendNotification(bool* notification_pending) = 0; | |
|
akalin
2011/03/10 04:26:45
Is there a way to avoid having to send this bool?
akalin
2011/03/10 04:26:45
Add a comment saying that this is here only to sup
Agrawal
2011/03/11 01:13:07
Done.
Agrawal
2011/03/11 01:13:07
Done.
| |
| 31 }; | |
| 32 } // namespace sync_notifier | |
| 33 | |
| 34 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_H_ | |
| 35 | |
| OLD | NEW |