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

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

Issue 2061093002: Revert of Add support for MAC address randomization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DEVICE_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_
6 #define CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ 6 #define CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 const std::string& old_pin, 192 const std::string& old_pin,
193 const std::string& new_pin, 193 const std::string& new_pin,
194 const base::Closure& callback, 194 const base::Closure& callback,
195 const network_handler::ErrorCallback& error_callback) = 0; 195 const network_handler::ErrorCallback& error_callback) = 0;
196 196
197 // Enables/disables roaming of all cellular devices. This happens 197 // Enables/disables roaming of all cellular devices. This happens
198 // asychronously in the background and applies also to devices which become 198 // asychronously in the background and applies also to devices which become
199 // available in the future. 199 // available in the future.
200 virtual void SetCellularAllowRoaming(bool allow_roaming) = 0; 200 virtual void SetCellularAllowRoaming(bool allow_roaming) = 0;
201 201
202 // Sets up MAC address randomization if available. This applies to devices
203 // which become available in the future.
204 virtual void SetMACAddressRandomizationEnabled(bool enabled) = 0;
205
206 // Attempts to enable or disable TDLS for the specified IP or MAC address for 202 // Attempts to enable or disable TDLS for the specified IP or MAC address for
207 // the active wifi device. 203 // the active wifi device.
208 virtual void SetWifiTDLSEnabled( 204 virtual void SetWifiTDLSEnabled(
209 const std::string& ip_or_mac_address, 205 const std::string& ip_or_mac_address,
210 bool enabled, 206 bool enabled,
211 const network_handler::StringResultCallback& callback, 207 const network_handler::StringResultCallback& callback,
212 const network_handler::ErrorCallback& error_callback) = 0; 208 const network_handler::ErrorCallback& error_callback) = 0;
213 209
214 // Returns the TDLS status for the specified IP or MAC address for 210 // Returns the TDLS status for the specified IP or MAC address for
215 // the active wifi device. 211 // the active wifi device.
(...skipping 22 matching lines...) Expand all
238 const base::Closure& callback, 234 const base::Closure& callback,
239 const network_handler::ErrorCallback& error_callback) = 0; 235 const network_handler::ErrorCallback& error_callback) = 0;
240 236
241 private: 237 private:
242 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandler); 238 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandler);
243 }; 239 };
244 240
245 } // namespace chromeos 241 } // namespace chromeos
246 242
247 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ 243 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/mock_network_device_handler.h ('k') | chromeos/network/network_device_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698