Chromium Code Reviews| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 192 bool GetNetworkInterfaces( | 192 bool GetNetworkInterfaces( |
| 193 enterprise_management::DeviceStatusReportRequest* status); | 193 enterprise_management::DeviceStatusReportRequest* status); |
| 194 bool GetUsers(enterprise_management::DeviceStatusReportRequest* status); | 194 bool GetUsers(enterprise_management::DeviceStatusReportRequest* status); |
| 195 bool GetHardwareStatus( | 195 bool GetHardwareStatus( |
| 196 enterprise_management::DeviceStatusReportRequest* status, | 196 enterprise_management::DeviceStatusReportRequest* status, |
| 197 scoped_refptr<GetStatusState> state); // Queues async queries! | 197 scoped_refptr<GetStatusState> state); // Queues async queries! |
| 198 bool GetOsUpdateStatus( | 198 bool GetOsUpdateStatus( |
| 199 enterprise_management::DeviceStatusReportRequest* status); | 199 enterprise_management::DeviceStatusReportRequest* status); |
| 200 bool GetRunningKioskApp( | 200 bool GetRunningKioskApp( |
| 201 enterprise_management::DeviceStatusReportRequest* status); | 201 enterprise_management::DeviceStatusReportRequest* status); |
| 202 bool GetSoundVolume(enterprise_management::DeviceStatusReportRequest* status); | |
| 202 | 203 |
| 203 // Helpers for the various portions of SESSION STATUS. Return true if they | 204 // Helpers for the various portions of SESSION STATUS. Return true if they |
| 204 // actually report any status. Functions that queue async queries take | 205 // actually report any status. Functions that queue async queries take |
| 205 // a |GetStatusState| instance. | 206 // a |GetStatusState| instance. |
| 206 bool GetKioskSessionStatus( | 207 bool GetKioskSessionStatus( |
| 207 enterprise_management::SessionStatusReportRequest* status); | 208 enterprise_management::SessionStatusReportRequest* status); |
| 208 bool GetAndroidStatus( | 209 bool GetAndroidStatus( |
| 209 enterprise_management::SessionStatusReportRequest* status, | 210 enterprise_management::SessionStatusReportRequest* status, |
| 210 const scoped_refptr<GetStatusState>& state); // Queues async queries! | 211 const scoped_refptr<GetStatusState>& state); // Queues async queries! |
| 211 | 212 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 // Cached values of the reporting settings from the device policy. | 269 // Cached values of the reporting settings from the device policy. |
| 269 bool report_version_info_ = false; | 270 bool report_version_info_ = false; |
| 270 bool report_activity_times_ = false; | 271 bool report_activity_times_ = false; |
| 271 bool report_boot_mode_ = false; | 272 bool report_boot_mode_ = false; |
| 272 bool report_network_interfaces_ = false; | 273 bool report_network_interfaces_ = false; |
| 273 bool report_users_ = false; | 274 bool report_users_ = false; |
| 274 bool report_hardware_status_ = false; | 275 bool report_hardware_status_ = false; |
| 275 bool report_kiosk_session_status_ = false; | 276 bool report_kiosk_session_status_ = false; |
| 276 bool report_os_update_status_ = false; | 277 bool report_os_update_status_ = false; |
| 277 bool report_running_kiosk_app_ = false; | 278 bool report_running_kiosk_app_ = false; |
| 279 bool report_sound_volume_ = false; | |
| 278 | 280 |
| 279 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 281 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 280 version_info_subscription_; | 282 version_info_subscription_; |
| 281 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 283 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 282 activity_times_subscription_; | 284 activity_times_subscription_; |
| 283 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 285 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 284 boot_mode_subscription_; | 286 boot_mode_subscription_; |
| 285 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 287 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 286 network_interfaces_subscription_; | 288 network_interfaces_subscription_; |
| 287 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 289 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 288 users_subscription_; | 290 users_subscription_; |
| 289 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 291 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 290 hardware_status_subscription_; | 292 hardware_status_subscription_; |
| 291 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 293 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 292 session_status_subscription_; | 294 session_status_subscription_; |
| 293 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 295 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 294 os_update_status_subscription_; | 296 os_update_status_subscription_; |
| 295 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 297 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 296 running_kiosk_app_subscription_; | 298 running_kiosk_app_subscription_; |
| 299 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | |
| 300 sound_volume_subscription_; | |
|
Andrew T Wilson (Slow)
2017/03/09 15:56:34
See my prev comment - probably makes sense to just
| |
| 297 | 301 |
| 298 // Task runner in the creation thread where responses are sent to. | 302 // Task runner in the creation thread where responses are sent to. |
| 299 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 303 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 300 base::ThreadChecker thread_checker_; | 304 base::ThreadChecker thread_checker_; |
| 301 | 305 |
| 302 base::WeakPtrFactory<DeviceStatusCollector> weak_factory_; | 306 base::WeakPtrFactory<DeviceStatusCollector> weak_factory_; |
| 303 | 307 |
| 304 DISALLOW_COPY_AND_ASSIGN(DeviceStatusCollector); | 308 DISALLOW_COPY_AND_ASSIGN(DeviceStatusCollector); |
| 305 }; | 309 }; |
| 306 | 310 |
| 307 } // namespace policy | 311 } // namespace policy |
| 308 | 312 |
| 309 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ | 313 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ |
| OLD | NEW |