summaryrefslogtreecommitdiffstats
path: root/chromeos/network/network_connection_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromeos/network/network_connection_handler.h')
-rw-r--r--chromeos/network/network_connection_handler.h43
1 files changed, 15 insertions, 28 deletions
diff --git a/chromeos/network/network_connection_handler.h b/chromeos/network/network_connection_handler.h
index 02028db..31fcfc5 100644
--- a/chromeos/network/network_connection_handler.h
+++ b/chromeos/network/network_connection_handler.h
@@ -48,40 +48,21 @@ class CHROMEOS_EXPORT NetworkConnectionHandler
public base::SupportsWeakPtr<NetworkConnectionHandler> {
public:
// Constants for |error_name| from |error_callback| for Connect.
-
- // No network matching |service_path| is found (hidden networks must be
- // configured before connecting).
static const char kErrorNotFound[];
-
- // Already connected to the network.
static const char kErrorConnected[];
-
- // Already connecting to the network.
static const char kErrorConnecting[];
-
- // The passphrase is missing or invalid.
static const char kErrorPassphraseRequired[];
-
static const char kErrorActivationRequired[];
-
- // The network requires a cert and none exists.
static const char kErrorCertificateRequired[];
-
- // The network had an authentication error, indicating that additional or
- // different authentication information is required.
static const char kErrorAuthenticationRequired[];
-
- // Additional configuration is required.
static const char kErrorConfigurationRequired[];
-
- // Configuration failed during the configure stage of the connect flow.
- static const char kErrorConfigureFailed[];
-
- // For Disconnect or Activate, an unexpected DBus or Shill error occurred.
static const char kErrorShillError[];
-
- // A new network connect request canceled this one.
+ static const char kErrorConnectFailed[];
+ static const char kErrorConfigureFailed[];
+ static const char kErrorActivateFailed[];
+ static const char kErrorMissingProvider[];
static const char kErrorConnectCanceled[];
+ static const char kErrorUnknown[];
// Constants for |error_name| from |error_callback| for Disconnect.
static const char kErrorNotConnected[];
@@ -90,10 +71,16 @@ class CHROMEOS_EXPORT NetworkConnectionHandler
// ConnectToNetwork() will start an asynchronous connection attempt.
// On success, |success_callback| will be called.
- // On failure, |error_callback| will be called with |error_name| one of the
- // constants defined above, or flimflam::kErrorConnectFailed or
- // flimflam::kErrorBadPassphrase if the Shill Error property (from a
- // previous connect attempt) was set to one of those.
+ // On failure, |error_callback| will be called with |error_name| one of:
+ // kErrorNotFound if no network matching |service_path| is found
+ // (hidden networks must be configured before connecting).
+ // kErrorConnected if already connected to the network.
+ // kErrorConnecting if already connecting to the network.
+ // kErrorCertificateRequired if the network requires a cert and none exists.
+ // kErrorPassphraseRequired if passphrase only is missing or incorrect.
+ // kErrorAuthenticationRequired if other authentication is required.
+ // kErrorConfigurationRequired if additional configuration is required.
+ // kErrorShillError if a DBus or Shill error occurred.
// |error_message| will contain an additional error string for debugging.
// If |check_error_state| is true, the current state of the network is
// checked for errors, otherwise current state is ignored (e.g. for recently