| 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> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
| 16 #include "base/callback_list.h" | 16 #include "base/callback_list.h" |
| 17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
| 20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 21 #include "base/sequenced_task_runner.h" | 21 #include "base/sequenced_task_runner.h" |
| 22 #include "base/task/cancelable_task_tracker.h" | 22 #include "base/task/cancelable_task_tracker.h" |
| 23 #include "base/threading/thread_checker.h" | 23 #include "base/threading/thread_checker.h" |
| 24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
| 25 #include "base/timer/timer.h" | 25 #include "base/timer/timer.h" |
| 26 | 26 |
| 27 #include "chrome/browser/chromeos/settings/cros_settings.h" | 27 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 28 #include "chromeos/system/version_loader.h" | 28 #include "chromeos/system/version_loader.h" |
| 29 #include "components/policy/proto/device_management_backend.pb.h" | 29 #include "components/policy/proto/device_management_backend.pb.h" |
| 30 #include "components/prefs/pref_member.h" |
| 30 #include "mojo/public/cpp/bindings/string.h" | 31 #include "mojo/public/cpp/bindings/string.h" |
| 31 #include "ui/base/idle/idle.h" | 32 #include "ui/base/idle/idle.h" |
| 32 | 33 |
| 33 namespace chromeos { | 34 namespace chromeos { |
| 34 class CrosSettings; | 35 class CrosSettings; |
| 35 namespace system { | 36 namespace system { |
| 36 class StatisticsProvider; | 37 class StatisticsProvider; |
| 37 } | 38 } |
| 38 } | 39 } |
| 39 | 40 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 278 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 278 users_subscription_; | 279 users_subscription_; |
| 279 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 280 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 280 hardware_status_subscription_; | 281 hardware_status_subscription_; |
| 281 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 282 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 282 session_status_subscription_; | 283 session_status_subscription_; |
| 283 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 284 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 284 os_update_status_subscription_; | 285 os_update_status_subscription_; |
| 285 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> | 286 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription> |
| 286 running_kiosk_app_subscription_; | 287 running_kiosk_app_subscription_; |
| 288 BooleanPrefMember report_arc_status_pref_; |
| 287 | 289 |
| 288 // Task runner in the creation thread where responses are sent to. | 290 // Task runner in the creation thread where responses are sent to. |
| 289 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 291 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 290 base::ThreadChecker thread_checker_; | 292 base::ThreadChecker thread_checker_; |
| 291 | 293 |
| 292 base::WeakPtrFactory<DeviceStatusCollector> weak_factory_; | 294 base::WeakPtrFactory<DeviceStatusCollector> weak_factory_; |
| 293 | 295 |
| 294 DISALLOW_COPY_AND_ASSIGN(DeviceStatusCollector); | 296 DISALLOW_COPY_AND_ASSIGN(DeviceStatusCollector); |
| 295 }; | 297 }; |
| 296 | 298 |
| 297 } // namespace policy | 299 } // namespace policy |
| 298 | 300 |
| 299 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ | 301 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ |
| OLD | NEW |