| OLD | NEW |
| 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_SYNC_NOTIFIER_OBSERVER_H_ | 5 #ifndef SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ |
| 6 #define SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ | 6 #define SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 class SyncNotifierObserver { | 22 class SyncNotifierObserver { |
| 23 public: | 23 public: |
| 24 SyncNotifierObserver() {} | 24 SyncNotifierObserver() {} |
| 25 virtual ~SyncNotifierObserver() {} | 25 virtual ~SyncNotifierObserver() {} |
| 26 | 26 |
| 27 virtual void OnIncomingNotification( | 27 virtual void OnIncomingNotification( |
| 28 const syncable::ModelTypePayloadMap& type_payloads, | 28 const syncable::ModelTypePayloadMap& type_payloads, |
| 29 IncomingNotificationSource source) = 0; | 29 IncomingNotificationSource source) = 0; |
| 30 virtual void OnNotificationStateChange(bool notifications_enabled) = 0; | 30 virtual void OnNotificationStateChange(bool notifications_enabled) = 0; |
| 31 | |
| 32 // TODO(nileshagrawal): Find a way to hide state handling inside the | |
| 33 // sync notifier implementation. | |
| 34 virtual void StoreState(const std::string& state) = 0; | |
| 35 }; | 31 }; |
| 36 | 32 |
| 37 } // namespace sync_notifier | 33 } // namespace sync_notifier |
| 38 | 34 |
| 39 #endif // SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ | 35 #endif // SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ |
| OLD | NEW |