| 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 // 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 SYNC_NOTIFIER_SYNC_NOTIFIER_H_ | 9 #ifndef SYNC_NOTIFIER_SYNC_NOTIFIER_H_ |
| 10 #define SYNC_NOTIFIER_SYNC_NOTIFIER_H_ | 10 #define SYNC_NOTIFIER_SYNC_NOTIFIER_H_ |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "sync/internal_api/public/syncable/model_type.h" | 14 #include "sync/internal_api/public/base/model_type.h" |
| 15 | 15 |
| 16 namespace syncer { | 16 namespace syncer { |
| 17 class SyncNotifierObserver; | 17 class SyncNotifierObserver; |
| 18 | 18 |
| 19 class SyncNotifier { | 19 class SyncNotifier { |
| 20 public: | 20 public: |
| 21 SyncNotifier() {} | 21 SyncNotifier() {} |
| 22 virtual ~SyncNotifier() {} | 22 virtual ~SyncNotifier() {} |
| 23 | 23 |
| 24 virtual void AddObserver(SyncNotifierObserver* observer) = 0; | 24 virtual void AddObserver(SyncNotifierObserver* observer) = 0; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 46 // This is here only to support the old p2p notification implementation, | 46 // This is here only to support the old p2p notification implementation, |
| 47 // which is still used by sync integration tests. | 47 // which is still used by sync integration tests. |
| 48 // TODO(akalin): Remove this once we move the integration tests off p2p | 48 // TODO(akalin): Remove this once we move the integration tests off p2p |
| 49 // notifications. | 49 // notifications. |
| 50 virtual void SendNotification( | 50 virtual void SendNotification( |
| 51 syncable::ModelTypeSet changed_types) = 0; | 51 syncable::ModelTypeSet changed_types) = 0; |
| 52 }; | 52 }; |
| 53 } // namespace syncer | 53 } // namespace syncer |
| 54 | 54 |
| 55 #endif // SYNC_NOTIFIER_SYNC_NOTIFIER_H_ | 55 #endif // SYNC_NOTIFIER_SYNC_NOTIFIER_H_ |
| OLD | NEW |