| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DEVICE_INFO_DEVICE_INFO_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SERVICE_H_ |
| 6 #define COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SERVICE_H_ | 6 #define COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SERVICE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 SyncError MergeSyncData( | 50 SyncError MergeSyncData( |
| 51 std::unique_ptr<MetadataChangeList> metadata_change_list, | 51 std::unique_ptr<MetadataChangeList> metadata_change_list, |
| 52 EntityDataMap entity_data_map) override; | 52 EntityDataMap entity_data_map) override; |
| 53 SyncError ApplySyncChanges( | 53 SyncError ApplySyncChanges( |
| 54 std::unique_ptr<MetadataChangeList> metadata_change_list, | 54 std::unique_ptr<MetadataChangeList> metadata_change_list, |
| 55 EntityChangeList entity_changes) override; | 55 EntityChangeList entity_changes) override; |
| 56 void GetData(StorageKeyList storage_keys, DataCallback callback) override; | 56 void GetData(StorageKeyList storage_keys, DataCallback callback) override; |
| 57 void GetAllData(DataCallback callback) override; | 57 void GetAllData(DataCallback callback) override; |
| 58 std::string GetClientTag(const EntityData& entity_data) override; | 58 std::string GetClientTag(const EntityData& entity_data) override; |
| 59 std::string GetStorageKey(const EntityData& entity_data) override; | 59 std::string GetStorageKey(const EntityData& entity_data) override; |
| 60 void DisableSync() override; |
| 60 | 61 |
| 61 // DeviceInfoTracker implementation. | 62 // DeviceInfoTracker implementation. |
| 62 bool IsSyncing() const override; | 63 bool IsSyncing() const override; |
| 63 std::unique_ptr<DeviceInfo> GetDeviceInfo( | 64 std::unique_ptr<DeviceInfo> GetDeviceInfo( |
| 64 const std::string& client_id) const override; | 65 const std::string& client_id) const override; |
| 65 std::vector<std::unique_ptr<DeviceInfo>> GetAllDeviceInfo() const override; | 66 std::vector<std::unique_ptr<DeviceInfo>> GetAllDeviceInfo() const override; |
| 66 void AddObserver(Observer* observer) override; | 67 void AddObserver(Observer* observer) override; |
| 67 void RemoveObserver(Observer* observer) override; | 68 void RemoveObserver(Observer* observer) override; |
| 68 int CountActiveDevices() const override; | 69 int CountActiveDevices() const override; |
| 69 | 70 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 165 |
| 165 // Used to update our local device info once every pulse interval. | 166 // Used to update our local device info once every pulse interval. |
| 166 base::OneShotTimer pulse_timer_; | 167 base::OneShotTimer pulse_timer_; |
| 167 | 168 |
| 168 DISALLOW_COPY_AND_ASSIGN(DeviceInfoService); | 169 DISALLOW_COPY_AND_ASSIGN(DeviceInfoService); |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 } // namespace syncer | 172 } // namespace syncer |
| 172 | 173 |
| 173 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SERVICE_H_ | 174 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SERVICE_H_ |
| OLD | NEW |