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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 // Starts the auto-enrollment client. | 77 // Starts the auto-enrollment client. |
78 void StartClient(const std::vector<std::string>& state_keys, bool first_boot); | 78 void StartClient(const std::vector<std::string>& state_keys, bool first_boot); |
79 | 79 |
80 // Sets |state_| and notifies |progress_callbacks_|. | 80 // Sets |state_| and notifies |progress_callbacks_|. |
81 void UpdateState(policy::AutoEnrollmentState state); | 81 void UpdateState(policy::AutoEnrollmentState state); |
82 | 82 |
83 policy::AutoEnrollmentState state_; | 83 policy::AutoEnrollmentState state_; |
84 ProgressCallbackList progress_callbacks_; | 84 ProgressCallbackList progress_callbacks_; |
85 | 85 |
| 86 scoped_ptr<policy::AutoEnrollmentClient> client_; |
| 87 |
86 base::WeakPtrFactory<AutoEnrollmentController> client_start_weak_factory_; | 88 base::WeakPtrFactory<AutoEnrollmentController> client_start_weak_factory_; |
87 | 89 |
88 scoped_ptr<policy::AutoEnrollmentClient> client_; | |
89 | |
90 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentController); | 90 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentController); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace chromeos | 93 } // namespace chromeos |
94 | 94 |
95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H
_ | 95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H
_ |
OLD | NEW |