#include "third_party/blink/renderer/modules/direct_sockets/socket.h"
#include <utility>
#include "net/base/net_errors.h"
#include "third_party/blink/public/mojom/frame/lifecycle.mojom-shared.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom-shared.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/platform/bindings/exception_code.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/scheduler/public/scheduling_policy.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
namespace {
std::pair<DOMExceptionCode, String>
CreateDOMExceptionCodeAndMessageFromNetErrorCode(int32_t net_error) { … }
}
ScriptPromise<IDLUndefined> Socket::closed(ScriptState* script_state) const { … }
Socket::Socket(ScriptState* script_state)
: … { … }
Socket::~Socket() = default;
bool Socket::CheckContextAndPermissions(ScriptState* script_state,
ExceptionState& exception_state) { … }
DOMException* Socket::CreateDOMExceptionFromNetErrorCode(int32_t net_error) { … }
void Socket::Trace(Visitor* visitor) const { … }
void Socket::ResetServiceAndFeatureHandle() { … }
}