Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(656)

Unified Diff: components/pairing/controller_pairing_controller.h

Issue 491943004: Update the pairing API to include configuration and enrollment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « no previous file | components/pairing/host_pairing_controller.h » ('j') | components/pairing/host_pairing_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698