| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const std::string& timezone, | 65 const std::string& timezone, |
| 66 bool send_reports, | 66 bool send_reports, |
| 67 const std::string& keyboard_layout) {} | 67 const std::string& keyboard_layout) {} |
| 68 | 68 |
| 69 // Called when the controller has sent a network to add. | 69 // Called when the controller has sent a network to add. |
| 70 virtual void AddNetworkRequested(const std::string& onc_spec) {} | 70 virtual void AddNetworkRequested(const std::string& onc_spec) {} |
| 71 | 71 |
| 72 // Called when the controller has provided an |auth_token| for enrollment. | 72 // Called when the controller has provided an |auth_token| for enrollment. |
| 73 virtual void EnrollHostRequested(const std::string& auth_token) {} | 73 virtual void EnrollHostRequested(const std::string& auth_token) {} |
| 74 | 74 |
| 75 // Called when the controller has sent a reboot request. This will happen |
| 76 // when the host enrollment fails. |
| 77 virtual void RebootHostRequested() {} |
| 78 |
| 75 private: | 79 private: |
| 76 DISALLOW_COPY_AND_ASSIGN(Observer); | 80 DISALLOW_COPY_AND_ASSIGN(Observer); |
| 77 }; | 81 }; |
| 78 | 82 |
| 79 HostPairingController(); | 83 HostPairingController(); |
| 80 virtual ~HostPairingController(); | 84 virtual ~HostPairingController(); |
| 81 | 85 |
| 82 // Returns current stage of pairing process. | 86 // Returns current stage of pairing process. |
| 83 virtual Stage GetCurrentStage() = 0; | 87 virtual Stage GetCurrentStage() = 0; |
| 84 | 88 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 virtual void AddObserver(Observer* observer) = 0; | 121 virtual void AddObserver(Observer* observer) = 0; |
| 118 virtual void RemoveObserver(Observer* observer) = 0; | 122 virtual void RemoveObserver(Observer* observer) = 0; |
| 119 | 123 |
| 120 private: | 124 private: |
| 121 DISALLOW_COPY_AND_ASSIGN(HostPairingController); | 125 DISALLOW_COPY_AND_ASSIGN(HostPairingController); |
| 122 }; | 126 }; |
| 123 | 127 |
| 124 } // namespace pairing_chromeos | 128 } // namespace pairing_chromeos |
| 125 | 129 |
| 126 #endif // COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ | 130 #endif // COMPONENTS_PAIRING_HOST_PAIRING_CONTROLLER_H_ |
| OLD | NEW |