Migrate NetworkMonitor to use native APIs.

PiperOrigin-RevId: 802185742
This commit is contained in:
Francis Tsui
2025-09-02 09:59:29 -07:00
committed by Copybara-Service
parent c1ac949ecb
commit 96040b49aa
2 changed files with 16 additions and 13 deletions
@@ -43,6 +43,9 @@ ByteArray Sha256(absl::string_view input, size_t size);
std::vector<std::string> GetIpv4Addresses();
std::vector<std::string> Get4BytesIpv4Addresses();
std::vector<std::string> GetWifiIpv4Addresses();
void GetIpv4Addresses(std::vector<std::string>& wifi_addresses,
std::vector<std::string>& ethernet_addresses,
std::vector<std::string>& other_addresses);
// Returns the connection state of the different network types.
void GetConnectedNetworks(bool& is_wifi_connected, bool& is_ethernet_connected,