Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: components/sync/device_info/device_info_service.h

Issue 2455693002: [Sync] On disabling sync, device info records are removed. (Closed)
Patch Set: Updates for Max. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/sync/device_info/device_info_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/sync/device_info/device_info_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698