OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ |
6 #define CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 static const char kErrorNotFound[]; | 51 static const char kErrorNotFound[]; |
52 static const char kErrorConnected[]; | 52 static const char kErrorConnected[]; |
53 static const char kErrorConnecting[]; | 53 static const char kErrorConnecting[]; |
54 static const char kErrorPassphraseRequired[]; | 54 static const char kErrorPassphraseRequired[]; |
55 static const char kErrorActivationRequired[]; | 55 static const char kErrorActivationRequired[]; |
56 static const char kErrorCertificateRequired[]; | 56 static const char kErrorCertificateRequired[]; |
57 static const char kErrorAuthenticationRequired[]; | 57 static const char kErrorAuthenticationRequired[]; |
58 static const char kErrorConfigurationRequired[]; | 58 static const char kErrorConfigurationRequired[]; |
59 static const char kErrorShillError[]; | 59 static const char kErrorShillError[]; |
60 static const char kErrorConnectFailed[]; | 60 static const char kErrorConnectFailed[]; |
| 61 static const char kErrorConfigureFailed[]; |
| 62 static const char kErrorActivateFailed[]; |
61 static const char kErrorMissingProvider[]; | 63 static const char kErrorMissingProvider[]; |
| 64 static const char kErrorConnectCanceled[]; |
62 static const char kErrorUnknown[]; | 65 static const char kErrorUnknown[]; |
63 | 66 |
64 // Constants for |error_name| from |error_callback| for Disconnect. | 67 // Constants for |error_name| from |error_callback| for Disconnect. |
65 static const char kErrorNotConnected[]; | 68 static const char kErrorNotConnected[]; |
66 | 69 |
67 virtual ~NetworkConnectionHandler(); | 70 virtual ~NetworkConnectionHandler(); |
68 | 71 |
69 // ConnectToNetwork() will start an asynchronous connection attempt. | 72 // ConnectToNetwork() will start an asynchronous connection attempt. |
70 // On success, |success_callback| will be called. | 73 // On success, |success_callback| will be called. |
71 // On failure, |error_callback| will be called with |error_name| one of: | 74 // On failure, |error_callback| will be called with |error_name| one of: |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // Track certificate loading state. | 205 // Track certificate loading state. |
203 bool logged_in_; | 206 bool logged_in_; |
204 bool certificates_loaded_; | 207 bool certificates_loaded_; |
205 | 208 |
206 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler); | 209 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler); |
207 }; | 210 }; |
208 | 211 |
209 } // namespace chromeos | 212 } // namespace chromeos |
210 | 213 |
211 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ | 214 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ |
OLD | NEW |