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

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

Issue 2254083002: [Sync] Convert NonBlockingDataTypeController to be single-thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dt
Patch Set: Update DeviceInfoService. Created 4 years, 4 months 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
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // If |local_device_info_provider_| has initialized. 173 // If |local_device_info_provider_| has initialized.
174 bool has_provider_initialized_ = false; 174 bool has_provider_initialized_ = false;
175 // If data has been loaded from the store. 175 // If data has been loaded from the store.
176 bool has_data_loaded_ = false; 176 bool has_data_loaded_ = false;
177 // if |change_processor()| has been given metadata. 177 // if |change_processor()| has been given metadata.
178 bool has_metadata_loaded_ = false; 178 bool has_metadata_loaded_ = false;
179 179
180 // Used to update our local device info once every pulse interval. 180 // Used to update our local device info once every pulse interval.
181 base::OneShotTimer pulse_timer_; 181 base::OneShotTimer pulse_timer_;
182 182
183 // Should always be last member.
184 base::WeakPtrFactory<DeviceInfoService> weak_factory_;
185
186 DISALLOW_COPY_AND_ASSIGN(DeviceInfoService); 183 DISALLOW_COPY_AND_ASSIGN(DeviceInfoService);
187 }; 184 };
188 185
189 } // namespace sync_driver_v2 186 } // namespace sync_driver_v2
190 187
191 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SERVICE_H_ 188 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sync/api/model_type_service.h ('k') | components/sync/device_info/device_info_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698