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

Side by Side Diff: chromeos/network/network_connection_handler.h

Issue 2819993002: [CrOS Tether] Add the notion of a tether DeviceState. (Closed)
Patch Set: stevenjb@ comment. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
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
105 ~NetworkConnectionHandler() override; 108 ~NetworkConnectionHandler() override;
106 109
107 void AddObserver(NetworkConnectionObserver* observer); 110 void AddObserver(NetworkConnectionObserver* observer);
108 void RemoveObserver(NetworkConnectionObserver* observer); 111 void RemoveObserver(NetworkConnectionObserver* observer);
109 112
110 // ConnectToNetwork() will start an asynchronous connection attempt. 113 // ConnectToNetwork() will start an asynchronous connection attempt.
111 // On success, |success_callback| will be called. 114 // On success, |success_callback| will be called.
112 // On failure, |error_callback| will be called with |error_name| one of the 115 // On failure, |error_callback| will be called with |error_name| one of the
113 // constants defined above. 116 // constants defined above.
114 // |error_message| will contain an additional error string for debugging. 117 // |error_message| will contain an additional error string for debugging.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 bool logged_in_; 256 bool logged_in_;
254 bool certificates_loaded_; 257 bool certificates_loaded_;
255 base::TimeTicks logged_in_time_; 258 base::TimeTicks logged_in_time_;
256 259
257 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler); 260 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler);
258 }; 261 };
259 262
260 } // namespace chromeos 263 } // namespace chromeos
261 264
262 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ 265 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_connect_unittest.cc ('k') | chromeos/network/network_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698