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

Unified Diff: components/pairing/host_pairing_controller.h

Issue 1519883003: 1) Add basic configuration (network connection, language, keyboard layout, timezone) setup page. 2)… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the i18n-content HTML format in the html files Created 5 years 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
« no previous file with comments | « components/pairing/fake_host_pairing_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pairing/host_pairing_controller.h
diff --git a/components/pairing/host_pairing_controller.h b/components/pairing/host_pairing_controller.h
index b360d071fea3fef03e0b7ae4b48979ab3d4ba5e8..05278f26dcdbe70217cf93702141543f5b491987 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;
« no previous file with comments | « components/pairing/fake_host_pairing_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698