| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |