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

Unified Diff: chromeos/network/network_device_handler_impl.h

Issue 2040603002: Add support for MAC address randomization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix FakeNetworkDeviceHandler in unit tests 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/network/network_device_handler.h ('k') | chromeos/network/network_device_handler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_device_handler_impl.h
diff --git a/chromeos/network/network_device_handler_impl.h b/chromeos/network/network_device_handler_impl.h
index 31d88548c65671f128c745ee1bacfca18e882555..6020a23c5bad828159324d5544b61de4516670b9 100644
--- a/chromeos/network/network_device_handler_impl.h
+++ b/chromeos/network/network_device_handler_impl.h
@@ -89,6 +89,8 @@ class CHROMEOS_EXPORT NetworkDeviceHandlerImpl
void SetCellularAllowRoaming(bool allow_roaming) override;
+ void SetMACAddressRandomizationEnabled(bool enabled) override;
+
void SetWifiTDLSEnabled(
const std::string& ip_or_mac_address,
bool enabled,
@@ -129,12 +131,16 @@ class CHROMEOS_EXPORT NetworkDeviceHandlerImpl
// cellular devices of Shill.
void ApplyCellularAllowRoamingToShill();
+ // Apply the current value of |mac_addr_randomization_| to wifi devices.
+ void ApplyMACAddressRandomizationToShill();
+
// Get the DeviceState for the wifi device, if any.
const DeviceState* GetWifiDeviceState(
const network_handler::ErrorCallback& error_callback);
NetworkStateHandler* network_state_handler_;
bool cellular_allow_roaming_;
+ bool mac_addr_randomization_;
DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandlerImpl);
};
« no previous file with comments | « chromeos/network/network_device_handler.h ('k') | chromeos/network/network_device_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698