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

Unified Diff: components/pairing/host_pairing_controller.h

Issue 652743003: Fix update and enrollment flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: indent Created 6 years, 2 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
« no previous file with comments | « components/pairing/fake_host_pairing_controller.cc ('k') | components/pairing/pairing_api.proto » ('j') | 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 6ca88ea4d4c12fc1294dbdf6db8303b6ed7c0a0b..5c5d96d21f85e49b586a81b33b271c837aa13171 100644
--- a/components/pairing/host_pairing_controller.h
+++ b/components/pairing/host_pairing_controller.h
@@ -34,6 +34,13 @@ class HostPairingController {
UPDATE_STATUS_UPDATED,
};
+ enum EnrollmentStatus {
+ ENROLLMENT_STATUS_UNKNOWN,
+ ENROLLMENT_STATUS_ENROLLING,
+ ENROLLMENT_STATUS_FAILURE,
+ ENROLLMENT_STATUS_SUCCESS,
+ };
+
class Observer {
public:
Observer();
@@ -80,8 +87,10 @@ class HostPairingController {
// Can be called on stage |STAGE_UPDATING|.
virtual void OnUpdateStatusChanged(UpdateStatus update_status) = 0;
- // Called when enrollment has completed.
- virtual void SetEnrollmentComplete(bool success) = 0;
+ // Notify that enrollment status has changed.
+ // Can be called on stage |STAGE_WAITING_FOR_CREDENTIALS|.
+ virtual void OnEnrollmentStatusChanged(
+ EnrollmentStatus enrollment_status) = 0;
virtual void AddObserver(Observer* observer) = 0;
virtual void RemoveObserver(Observer* observer) = 0;
« no previous file with comments | « components/pairing/fake_host_pairing_controller.cc ('k') | components/pairing/pairing_api.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698