| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // The maximum key that went into the last report generated by | 208 // The maximum key that went into the last report generated by |
| 209 // GetDeviceStatus(), and the duration for it. This is used to trim the | 209 // GetDeviceStatus(), and the duration for it. This is used to trim the |
| 210 // stored data in OnSubmittedSuccessfully(). Trimming is delayed so | 210 // stored data in OnSubmittedSuccessfully(). Trimming is delayed so |
| 211 // unsuccessful uploads don't result in dropped data. | 211 // unsuccessful uploads don't result in dropped data. |
| 212 int64 last_reported_day_; | 212 int64 last_reported_day_; |
| 213 int duration_for_last_reported_day_; | 213 int duration_for_last_reported_day_; |
| 214 | 214 |
| 215 // Whether a geolocation update is currently in progress. | 215 // Whether a geolocation update is currently in progress. |
| 216 bool geolocation_update_in_progress_; | 216 bool geolocation_update_in_progress_; |
| 217 | 217 |
| 218 base::RepeatingTimer<DeviceStatusCollector> idle_poll_timer_; | 218 base::RepeatingTimer idle_poll_timer_; |
| 219 base::RepeatingTimer<DeviceStatusCollector> hardware_status_sampling_timer_; | 219 base::RepeatingTimer hardware_status_sampling_timer_; |
| 220 base::OneShotTimer<DeviceStatusCollector> geolocation_update_timer_; | 220 base::OneShotTimer geolocation_update_timer_; |
| 221 | 221 |
| 222 std::string os_version_; | 222 std::string os_version_; |
| 223 std::string firmware_version_; | 223 std::string firmware_version_; |
| 224 | 224 |
| 225 content::Geoposition position_; | 225 content::Geoposition position_; |
| 226 | 226 |
| 227 // Cached disk volume information. | 227 // Cached disk volume information. |
| 228 std::vector<enterprise_management::VolumeInfo> volume_info_; | 228 std::vector<enterprise_management::VolumeInfo> volume_info_; |
| 229 | 229 |
| 230 // Cached CPU temp information. | 230 // Cached CPU temp information. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 session_status_subscription_; | 295 session_status_subscription_; |
| 296 | 296 |
| 297 base::WeakPtrFactory<DeviceStatusCollector> weak_factory_; | 297 base::WeakPtrFactory<DeviceStatusCollector> weak_factory_; |
| 298 | 298 |
| 299 DISALLOW_COPY_AND_ASSIGN(DeviceStatusCollector); | 299 DISALLOW_COPY_AND_ASSIGN(DeviceStatusCollector); |
| 300 }; | 300 }; |
| 301 | 301 |
| 302 } // namespace policy | 302 } // namespace policy |
| 303 | 303 |
| 304 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ | 304 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ |
| OLD | NEW |