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

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

Issue 24348002: Migrate DBus service constants from flimflam namespace to shill namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased to ToT Created 7 years, 2 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 static const char kErrorConnectCanceled[]; 84 static const char kErrorConnectCanceled[];
85 85
86 // Constants for |error_name| from |error_callback| for Disconnect. 86 // Constants for |error_name| from |error_callback| for Disconnect.
87 static const char kErrorNotConnected[]; 87 static const char kErrorNotConnected[];
88 88
89 virtual ~NetworkConnectionHandler(); 89 virtual ~NetworkConnectionHandler();
90 90
91 // ConnectToNetwork() will start an asynchronous connection attempt. 91 // ConnectToNetwork() will start an asynchronous connection attempt.
92 // On success, |success_callback| will be called. 92 // On success, |success_callback| will be called.
93 // On failure, |error_callback| will be called with |error_name| one of the 93 // On failure, |error_callback| will be called with |error_name| one of the
94 // constants defined above, or flimflam::kErrorConnectFailed or 94 // constants defined above, or shill::kErrorConnectFailed or
95 // flimflam::kErrorBadPassphrase if the Shill Error property (from a 95 // shill::kErrorBadPassphrase if the Shill Error property (from a
96 // previous connect attempt) was set to one of those. 96 // previous connect attempt) was set to one of those.
97 // |error_message| will contain an additional error string for debugging. 97 // |error_message| will contain an additional error string for debugging.
98 // If |check_error_state| is true, the current state of the network is 98 // If |check_error_state| is true, the current state of the network is
99 // checked for errors, otherwise current state is ignored (e.g. for recently 99 // checked for errors, otherwise current state is ignored (e.g. for recently
100 // configured networks or repeat attempts). 100 // configured networks or repeat attempts).
101 void ConnectToNetwork(const std::string& service_path, 101 void ConnectToNetwork(const std::string& service_path,
102 const base::Closure& success_callback, 102 const base::Closure& success_callback,
103 const network_handler::ErrorCallback& error_callback, 103 const network_handler::ErrorCallback& error_callback,
104 bool check_error_state); 104 bool check_error_state);
105 105
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Track certificate loading state. 202 // Track certificate loading state.
203 bool logged_in_; 203 bool logged_in_;
204 bool certificates_loaded_; 204 bool certificates_loaded_;
205 205
206 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler); 206 DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandler);
207 }; 207 };
208 208
209 } // namespace chromeos 209 } // namespace chromeos
210 210
211 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_ 211 #endif // CHROMEOS_NETWORK_NETWORK_CONNECTION_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_configuration_handler_unittest.cc ('k') | chromeos/network/network_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698