#include "net/base/logging_network_change_observer.h"
#include <string>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "build/build_config.h"
#include "net/log/net_log.h"
#include "net/log/net_log_event_type.h"
#if BUILDFLAG(IS_ANDROID)
#include "base/android/build_info.h"
#endif
namespace net {
namespace {
int HumanReadableNetworkHandle(handles::NetworkHandle network) { … }
base::Value::Dict NetworkSpecificNetLogParams(handles::NetworkHandle network) { … }
void NetLogNetworkSpecific(NetLogWithSource& net_log,
NetLogEventType type,
handles::NetworkHandle network) { … }
}
LoggingNetworkChangeObserver::LoggingNetworkChangeObserver(NetLog* net_log)
: … { … }
LoggingNetworkChangeObserver::~LoggingNetworkChangeObserver() { … }
void LoggingNetworkChangeObserver::OnIPAddressChanged() { … }
void LoggingNetworkChangeObserver::OnConnectionTypeChanged(
NetworkChangeNotifier::ConnectionType type) { … }
void LoggingNetworkChangeObserver::OnNetworkChanged(
NetworkChangeNotifier::ConnectionType type) { … }
void LoggingNetworkChangeObserver::OnNetworkConnected(
handles::NetworkHandle network) { … }
void LoggingNetworkChangeObserver::OnNetworkDisconnected(
handles::NetworkHandle network) { … }
void LoggingNetworkChangeObserver::OnNetworkSoonToDisconnect(
handles::NetworkHandle network) { … }
void LoggingNetworkChangeObserver::OnNetworkMadeDefault(
handles::NetworkHandle network) { … }
}