| Index: components/pairing/controller_pairing_controller.h
|
| diff --git a/components/pairing/controller_pairing_controller.h b/components/pairing/controller_pairing_controller.h
|
| index 67ec581604f633b8c3ef118c8eeee3c367c32bf1..c736d5ca27a2cb6629e09bec4c166ea1ac277dc3 100644
|
| --- a/components/pairing/controller_pairing_controller.h
|
| +++ b/components/pairing/controller_pairing_controller.h
|
| @@ -24,6 +24,7 @@ class ControllerPairingController {
|
| public:
|
| enum Stage {
|
| STAGE_NONE,
|
| + STAGE_INITIALIZATION_ERROR,
|
| STAGE_DEVICES_DISCOVERY,
|
| STAGE_DEVICE_NOT_FOUND,
|
| STAGE_ESTABLISHING_CONNECTION,
|
| @@ -89,11 +90,18 @@ class ControllerPairingController {
|
| // |STAGE_WAITING_FOR_CODE_CONFIRMATION| stage.
|
| virtual void SetConfirmationCodeIsCorrect(bool correct) = 0;
|
|
|
| + // Set the values that will be sent to the Host if it needs to be configured.
|
| + virtual void SetHostConfiguration(bool accepted_eula,
|
| + const std::string& lang,
|
| + const std::string& timezone,
|
| + bool send_reports,
|
| + const std::string& keyboard_layout) = 0;
|
| +
|
| + virtual Stage GetCurrentStage() = 0;
|
| // Called when user successfully authenticated on GAIA page. Can be called
|
| // only on |STAGE_WAITING_FOR_CREDENTIALS| stage.
|
| - virtual void OnAuthenticationDone(
|
| - const chromeos::UserContext& user_context,
|
| - content::BrowserContext* browser_context) = 0;
|
| + // |auth_token| will be sent to the host to be used for enrollment.
|
| + virtual void OnAuthenticationDone(const std::string& auth_token) = 0;
|
|
|
| // Installs app and starts session.
|
| // Can be called only on |STAGE_PAIRING_DONE| stage.
|
|
|