| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
| 9 #include "components/sync_driver/device_info_tracker.h" | 9 #include "components/sync_driver/device_info_tracker.h" |
| 10 #include "sync/api/sync_change_processor.h" | 10 #include "sync/api/sync_change_processor.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Receives ownership of |sync_processor_| and |error_handler_| in | 91 // Receives ownership of |sync_processor_| and |error_handler_| in |
| 92 // MergeDataAndStartSyncing() and destroy them in StopSyncing(). | 92 // MergeDataAndStartSyncing() and destroy them in StopSyncing(). |
| 93 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; | 93 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; |
| 94 scoped_ptr<syncer::SyncErrorFactory> error_handler_; | 94 scoped_ptr<syncer::SyncErrorFactory> error_handler_; |
| 95 | 95 |
| 96 // Cache of all syncable and local data. | 96 // Cache of all syncable and local data. |
| 97 typedef std::map<std::string, syncer::SyncData> SyncDataMap; | 97 typedef std::map<std::string, syncer::SyncData> SyncDataMap; |
| 98 SyncDataMap all_data_; | 98 SyncDataMap all_data_; |
| 99 | 99 |
| 100 // Registered observers, not owned. | 100 // Registered observers, not owned. |
| 101 ObserverList<Observer, true> observers_; | 101 base::ObserverList<Observer, true> observers_; |
| 102 | 102 |
| 103 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncService); | 103 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncService); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace sync_driver | 106 } // namespace sync_driver |
| 107 | 107 |
| 108 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ | 108 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ |
| OLD | NEW |