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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 102 // Network activation failed. |
103 static const char kErrorActivateFailed[]; | 103 static const char kErrorActivateFailed[]; |
104 | 104 |
105 // Network was enabled/disabled when it was not available. | |
106 static const char kEnabledOrDisabledWhenNotAvailable[]; | |
107 | |
108 ~NetworkConnectionHandler() override; | 105 ~NetworkConnectionHandler() override; |
109 | 106 |
110 void AddObserver(NetworkConnectionObserver* observer); | 107 void AddObserver(NetworkConnectionObserver* observer); |
111 void RemoveObserver(NetworkConnectionObserver* observer); | 108 void RemoveObserver(NetworkConnectionObserver* observer); |
112 | 109 |
113 // ConnectToNetwork() will start an asynchronous connection attempt. | 110 // ConnectToNetwork() will start an asynchronous connection attempt. |
114 // On success, |success_callback| will be called. | 111 // On success, |success_callback| will be called. |
115 // 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 |
116 // constants defined above. | 113 // constants defined above. |
117 // |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... |
256 bool logged_in_; | 253 bool logged_in_; |
257 bool certificates_loaded_; | 254 bool certificates_loaded_; |
258 base::TimeTicks logged_in_time_; | 255 base::TimeTicks logged_in_time_; |
259 | 256 |
260 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler); | 257 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler); |
261 }; | 258 }; |
262 | 259 |
263 } // namespace chromeos | 260 } // namespace chromeos |
264 | 261 |
265 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ | 262 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ |
OLD | NEW |