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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 // Constants for |error_name| from |error_callback| for Disconnect. | 93 // Constants for |error_name| from |error_callback| for Disconnect. |
94 static const char kErrorNotConnected[]; | 94 static const char kErrorNotConnected[]; |
95 | 95 |
96 // Certificate load timed out. | 96 // Certificate load timed out. |
97 static const char kErrorCertLoadTimeout[]; | 97 static const char kErrorCertLoadTimeout[]; |
98 | 98 |
99 // Trying to configure an unmanged network but policy prohibits that | 99 // Trying to configure an unmanged network but policy prohibits that |
100 static const char kErrorUnmanagedNetwork[]; | 100 static const char kErrorUnmanagedNetwork[]; |
101 | 101 |
| 102 // Network activation failed. |
| 103 static const char kErrorActivateFailed[]; |
| 104 |
102 ~NetworkConnectionHandler() override; | 105 ~NetworkConnectionHandler() override; |
103 | 106 |
104 void AddObserver(NetworkConnectionObserver* observer); | 107 void AddObserver(NetworkConnectionObserver* observer); |
105 void RemoveObserver(NetworkConnectionObserver* observer); | 108 void RemoveObserver(NetworkConnectionObserver* observer); |
106 | 109 |
107 // ConnectToNetwork() will start an asynchronous connection attempt. | 110 // ConnectToNetwork() will start an asynchronous connection attempt. |
108 // On success, |success_callback| will be called. | 111 // On success, |success_callback| will be called. |
109 // On failure, |error_callback| will be called with |error_name| one of the | 112 // On failure, |error_callback| will be called with |error_name| one of the |
110 // constants defined above. | 113 // constants defined above. |
111 // |error_message| will contain an additional error string for debugging. | 114 // |error_message| will contain an additional error string for debugging. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 bool logged_in_; | 253 bool logged_in_; |
251 bool certificates_loaded_; | 254 bool certificates_loaded_; |
252 base::TimeTicks logged_in_time_; | 255 base::TimeTicks logged_in_time_; |
253 | 256 |
254 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler); | 257 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler); |
255 }; | 258 }; |
256 | 259 |
257 } // namespace chromeos | 260 } // namespace chromeos |
258 | 261 |
259 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ | 262 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ |
OLD | NEW |