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

Unified Diff: components/pairing/host_pairing_controller.h

Issue 2890383003: Bootstrapping: Send meaningful error code/message from Slave to Master (Closed)
Patch Set: Address achuith@'s comments. Created 3 years, 6 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') | 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 76fdd66e7466bb735437e463a6ce04eef48d3a19..4e6b6122c4ccba17c239da11ce5c816ae5abb8ae 100644
--- a/components/pairing/host_pairing_controller.h
+++ b/components/pairing/host_pairing_controller.h
@@ -51,6 +51,14 @@ class HostPairingController {
ENROLLMENT_STATUS_SUCCESS,
};
+ enum class ErrorCode : int {
+ ERROR_NONE = 0,
+ NETWORK_ERROR,
+ AUTH_ERROR,
+ ENROLL_ERROR,
+ OTHER_ERROR,
+ };
+
class Observer {
public:
Observer();
@@ -115,6 +123,9 @@ class HostPairingController {
// Set the permanent id assigned during enrollment.
virtual void SetPermanentId(const std::string& permanent_id) = 0;
+ virtual void SetErrorCodeAndMessage(int error_code,
+ const std::string& error_message) = 0;
+
// Reset the controller.
virtual void Reset() = 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