OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback_list.h" | 12 #include "base/callback_list.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
16 #include "chrome/browser/chromeos/policy/auto_enrollment_client.h" | 16 #include "chrome/browser/chromeos/policy/auto_enrollment_client.h" |
17 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 17 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
18 | 18 |
19 namespace policy { | |
20 class ServerBackedStateKeysBroker; | |
21 } | |
22 | |
23 namespace chromeos { | 19 namespace chromeos { |
24 | 20 |
25 // Drives the forced re-enrollment check (for historical reasons called | 21 // Drives the forced re-enrollment check (for historical reasons called |
26 // auto-enrollment check), running an AutoEnrollmentClient if appropriate to | 22 // auto-enrollment check), running an AutoEnrollmentClient if appropriate to |
27 // make a decision. | 23 // make a decision. |
28 class AutoEnrollmentController { | 24 class AutoEnrollmentController { |
29 public: | 25 public: |
30 typedef base::CallbackList<void(policy::AutoEnrollmentState)> | 26 typedef base::CallbackList<void(policy::AutoEnrollmentState)> |
31 ProgressCallbackList; | 27 ProgressCallbackList; |
32 | 28 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 base::Timer safeguard_timer_; | 91 base::Timer safeguard_timer_; |
96 | 92 |
97 base::WeakPtrFactory<AutoEnrollmentController> client_start_weak_factory_; | 93 base::WeakPtrFactory<AutoEnrollmentController> client_start_weak_factory_; |
98 | 94 |
99 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentController); | 95 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentController); |
100 }; | 96 }; |
101 | 97 |
102 } // namespace chromeos | 98 } // namespace chromeos |
103 | 99 |
104 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H
_ | 100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H
_ |
OLD | NEW |