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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/task/cancelable_task_tracker.h" |
16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
17 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
18 #include "chrome/browser/chromeos/settings/cros_settings.h" | 19 #include "chrome/browser/chromeos/settings/cros_settings.h" |
19 #include "chrome/browser/chromeos/version_loader.h" | 20 #include "chrome/browser/chromeos/version_loader.h" |
20 #include "chrome/browser/idle.h" | 21 #include "chrome/browser/idle.h" |
21 #include "chrome/common/cancelable_task_tracker.h" | |
22 #include "components/policy/core/common/cloud/cloud_policy_client.h" | 22 #include "components/policy/core/common/cloud/cloud_policy_client.h" |
23 #include "content/public/browser/geolocation_provider.h" | 23 #include "content/public/browser/geolocation_provider.h" |
24 #include "content/public/common/geoposition.h" | 24 #include "content/public/common/geoposition.h" |
25 | 25 |
26 namespace chromeos { | 26 namespace chromeos { |
27 class CrosSettings; | 27 class CrosSettings; |
28 namespace system { | 28 namespace system { |
29 class StatisticsProvider; | 29 class StatisticsProvider; |
30 } | 30 } |
31 } | 31 } |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 int64 last_reported_day_; | 173 int64 last_reported_day_; |
174 int duration_for_last_reported_day_; | 174 int duration_for_last_reported_day_; |
175 | 175 |
176 // Whether a geolocation update is currently in progress. | 176 // Whether a geolocation update is currently in progress. |
177 bool geolocation_update_in_progress_; | 177 bool geolocation_update_in_progress_; |
178 | 178 |
179 base::RepeatingTimer<DeviceStatusCollector> idle_poll_timer_; | 179 base::RepeatingTimer<DeviceStatusCollector> idle_poll_timer_; |
180 base::OneShotTimer<DeviceStatusCollector> geolocation_update_timer_; | 180 base::OneShotTimer<DeviceStatusCollector> geolocation_update_timer_; |
181 | 181 |
182 chromeos::VersionLoader version_loader_; | 182 chromeos::VersionLoader version_loader_; |
183 CancelableTaskTracker tracker_; | 183 base::CancelableTaskTracker tracker_; |
184 | 184 |
185 std::string os_version_; | 185 std::string os_version_; |
186 std::string firmware_version_; | 186 std::string firmware_version_; |
187 | 187 |
188 content::Geoposition position_; | 188 content::Geoposition position_; |
189 | 189 |
190 chromeos::system::StatisticsProvider* statistics_provider_; | 190 chromeos::system::StatisticsProvider* statistics_provider_; |
191 | 191 |
192 chromeos::CrosSettings* cros_settings_; | 192 chromeos::CrosSettings* cros_settings_; |
193 | 193 |
(...skipping 25 matching lines...) Expand all Loading... |
219 network_interfaces_subscription_; | 219 network_interfaces_subscription_; |
220 scoped_ptr<chromeos::CrosSettings::ObserverSubscription> | 220 scoped_ptr<chromeos::CrosSettings::ObserverSubscription> |
221 users_subscription_; | 221 users_subscription_; |
222 | 222 |
223 DISALLOW_COPY_AND_ASSIGN(DeviceStatusCollector); | 223 DISALLOW_COPY_AND_ASSIGN(DeviceStatusCollector); |
224 }; | 224 }; |
225 | 225 |
226 } // namespace policy | 226 } // namespace policy |
227 | 227 |
228 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ | 228 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_STATUS_COLLECTOR_H_ |
OLD | NEW |