#include "third_party/blink/renderer/modules/netinfo/network_information.h"
#include <algorithm>
#include "base/time/time.h"
#include "third_party/blink/public/mojom/devtools/console_message.mojom-blink.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/execution_context/navigator_base.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/modules/event_target_modules.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/supplementable.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
namespace {
String ConnectionTypeToString(WebConnectionType type) { … }
String GetConsoleLogStringForWebHoldback() { … }
}
NetworkInformation::~NetworkInformation() { … }
bool NetworkInformation::IsObserving() const { … }
String NetworkInformation::type() const { … }
double NetworkInformation::downlinkMax() const { … }
String NetworkInformation::effectiveType() { … }
uint32_t NetworkInformation::rtt() { … }
double NetworkInformation::downlink() { … }
bool NetworkInformation::saveData() const { … }
void NetworkInformation::ConnectionChange(
WebConnectionType type,
double downlink_max_mbps,
WebEffectiveConnectionType effective_type,
const std::optional<base::TimeDelta>& http_rtt,
const std::optional<base::TimeDelta>& transport_rtt,
const std::optional<double>& downlink_mbps,
bool save_data) { … }
const AtomicString& NetworkInformation::InterfaceName() const { … }
ExecutionContext* NetworkInformation::GetExecutionContext() const { … }
void NetworkInformation::AddedEventListener(
const AtomicString& event_type,
RegisteredEventListener& registered_listener) { … }
void NetworkInformation::RemovedEventListener(
const AtomicString& event_type,
const RegisteredEventListener& registered_listener) { … }
void NetworkInformation::RemoveAllEventListeners() { … }
bool NetworkInformation::HasPendingActivity() const { … }
void NetworkInformation::ContextDestroyed() { … }
void NetworkInformation::StartObserving() { … }
void NetworkInformation::StopObserving() { … }
const char NetworkInformation::kSupplementName[] = …;
NetworkInformation* NetworkInformation::connection(NavigatorBase& navigator) { … }
NetworkInformation::NetworkInformation(NavigatorBase& navigator)
: … { … }
void NetworkInformation::Trace(Visitor* visitor) const { … }
const String NetworkInformation::Host() const { … }
void NetworkInformation::MaybeShowWebHoldbackConsoleMsg() { … }
}