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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 virtual std::string GetConfirmationCode() = 0; | 73 virtual std::string GetConfirmationCode() = 0; |
74 | 74 |
75 // Returns an enrollment domain name. Can be called on stage | 75 // Returns an enrollment domain name. Can be called on stage |
76 // |STAGE_ENROLLMENT| and later. | 76 // |STAGE_ENROLLMENT| and later. |
77 virtual std::string GetEnrollmentDomain() = 0; | 77 virtual std::string GetEnrollmentDomain() = 0; |
78 | 78 |
79 // Notify that the update status has changed. | 79 // Notify that the update status has changed. |
80 // Can be called on stage |STAGE_UPDATING|. | 80 // Can be called on stage |STAGE_UPDATING|. |
81 virtual void OnUpdateStatusChanged(UpdateStatus update_status) = 0; | 81 virtual void OnUpdateStatusChanged(UpdateStatus update_status) = 0; |
82 | 82 |
| 83 // Called when enrollment has completed. |
| 84 virtual void SetEnrollmentComplete(bool success) = 0; |
| 85 |
83 virtual void AddObserver(Observer* observer) = 0; | 86 virtual void AddObserver(Observer* observer) = 0; |
84 virtual void RemoveObserver(Observer* observer) = 0; | 87 virtual void RemoveObserver(Observer* observer) = 0; |
85 | 88 |
86 private: | 89 private: |
87 DISALLOW_COPY_AND_ASSIGN(HostPairingController); | 90 DISALLOW_COPY_AND_ASSIGN(HostPairingController); |
88 }; | 91 }; |
89 | 92 |
90 } // namespace pairing_chromeos | 93 } // namespace pairing_chromeos |
91 | 94 |
92 #endif // COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ | 95 #endif // COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ |
OLD | NEW |