summaryrefslogtreecommitdiffstats
path: root/components/pairing/host_pairing_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/pairing/host_pairing_controller.h')
-rw-r--r--components/pairing/host_pairing_controller.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/components/pairing/host_pairing_controller.h b/components/pairing/host_pairing_controller.h
index b360d07..05278f2 100644
--- a/components/pairing/host_pairing_controller.h
+++ b/components/pairing/host_pairing_controller.h
@@ -18,6 +18,8 @@ class HostPairingController {
STAGE_INITIALIZATION_ERROR,
STAGE_WAITING_FOR_CONTROLLER,
STAGE_WAITING_FOR_CODE_CONFIRMATION,
+ STAGE_SETUP_BASIC_CONFIGURATION,
+ STAGE_SETUP_NETWORK_ERROR,
STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE,
STAGE_WAITING_FOR_CREDENTIALS,
STAGE_ENROLLING,
@@ -26,6 +28,14 @@ class HostPairingController {
STAGE_FINISHED
};
+ enum Connectivity {
+ CONNECTIVITY_UNTESTED,
+ CONNECTIVITY_NONE,
+ CONNECTIVITY_LIMITED,
+ CONNECTIVITY_CONNECTING,
+ CONNECTIVITY_CONNECTED,
+ };
+
enum UpdateStatus {
UPDATE_STATUS_UNKNOWN,
UPDATE_STATUS_UPDATING,
@@ -85,6 +95,10 @@ class HostPairingController {
// |STAGE_ENROLLMENT| and later.
virtual std::string GetEnrollmentDomain() = 0;
+ // Notify that the network connectivity status has changed.
+ virtual void OnNetworkConnectivityChanged(
+ Connectivity connectivity_status) = 0;
+
// Notify that the update status has changed.
virtual void OnUpdateStatusChanged(UpdateStatus update_status) = 0;