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 COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ | 5 #ifndef COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ |
6 #define COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ | 6 #define COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 virtual void OnUpdateStatusChanged(UpdateStatus update_status) = 0; | 104 virtual void OnUpdateStatusChanged(UpdateStatus update_status) = 0; |
105 | 105 |
106 // Notify that enrollment status has changed. | 106 // Notify that enrollment status has changed. |
107 // Can be called on stage |STAGE_WAITING_FOR_CREDENTIALS|. | 107 // Can be called on stage |STAGE_WAITING_FOR_CREDENTIALS|. |
108 virtual void OnEnrollmentStatusChanged( | 108 virtual void OnEnrollmentStatusChanged( |
109 EnrollmentStatus enrollment_status) = 0; | 109 EnrollmentStatus enrollment_status) = 0; |
110 | 110 |
111 // Set the permanent id assigned during enrollment. | 111 // Set the permanent id assigned during enrollment. |
112 virtual void SetPermanentId(const std::string& permanent_id) = 0; | 112 virtual void SetPermanentId(const std::string& permanent_id) = 0; |
113 | 113 |
| 114 // Reset the controller. |
| 115 virtual void Reset() = 0; |
| 116 |
114 virtual void AddObserver(Observer* observer) = 0; | 117 virtual void AddObserver(Observer* observer) = 0; |
115 virtual void RemoveObserver(Observer* observer) = 0; | 118 virtual void RemoveObserver(Observer* observer) = 0; |
116 | 119 |
117 private: | 120 private: |
118 DISALLOW_COPY_AND_ASSIGN(HostPairingController); | 121 DISALLOW_COPY_AND_ASSIGN(HostPairingController); |
119 }; | 122 }; |
120 | 123 |
121 } // namespace pairing_chromeos | 124 } // namespace pairing_chromeos |
122 | 125 |
123 #endif // COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ | 126 #endif // COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ |
OLD | NEW |