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

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

Issue 15233002: Add NetworkStateHandler::RequestUpdateForNetwork (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add request call for NetworkConfigurationHandler::CreateConfiguration Created 7 years, 7 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 | Annotate | Revision Log
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_STATE_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void RequestScan() const; 150 void RequestScan() const;
151 151
152 // Request a scan if not scanning and run |callback| when the Scanning state 152 // Request a scan if not scanning and run |callback| when the Scanning state
153 // for any Device matching |type| completes. 153 // for any Device matching |type| completes.
154 void WaitForScan(const std::string& type, const base::Closure& callback); 154 void WaitForScan(const std::string& type, const base::Closure& callback);
155 155
156 // Request a network scan then signal Shill to connect to the best available 156 // Request a network scan then signal Shill to connect to the best available
157 // networks when completed. 157 // networks when completed.
158 void ConnectToBestWifiNetwork(); 158 void ConnectToBestWifiNetwork();
159 159
160 // Request an update for an existing NetworkState, e.g. after configuring
161 // a network. This is a no-op if an update request is already pending.
162 // Returns true if the network exists and an update is requested or pending.
163 // When the properties are received, NetworkPropertiesUpdated will be
164 // signaled for each member of |observers_|, regardless of whether any
165 // properties actually changed.
166 bool RequestUpdateForNetwork(const std::string& service_path);
167
168 // Request an update for all existing NetworkState entries, e.g. after
169 // loading an ONC configuration file that may have updated one or more
170 // existing networks.
171 void RequestUpdateForAllNetworks();
172
160 // Set the user initiated connecting network. 173 // Set the user initiated connecting network.
161 void SetConnectingNetwork(const std::string& service_path); 174 void SetConnectingNetwork(const std::string& service_path);
162 175
163 const std::string& connecting_network() const { return connecting_network_; } 176 const std::string& connecting_network() const { return connecting_network_; }
164 177
165 // Generates a DictionaryValue of all NetworkState properties. Currently 178 // Generates a DictionaryValue of all NetworkState properties. Currently
166 // provided for debugging purposes only. 179 // provided for debugging purposes only.
167 void GetNetworkStatePropertiesForTest( 180 void GetNetworkStatePropertiesForTest(
168 base::DictionaryValue* dictionary) const; 181 base::DictionaryValue* dictionary) const;
169 182
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 290
278 // Callbacks to run when a scan for the technology type completes. 291 // Callbacks to run when a scan for the technology type completes.
279 ScanCompleteCallbackMap scan_complete_callbacks_; 292 ScanCompleteCallbackMap scan_complete_callbacks_;
280 293
281 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); 294 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler);
282 }; 295 };
283 296
284 } // namespace chromeos 297 } // namespace chromeos
285 298
286 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ 299 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_configuration_handler_unittest.cc ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698