#include "third_party/blink/renderer/modules/direct_sockets/tcp_readable_stream_wrapper.h"
#include "base/check.h"
#include "base/containers/span.h"
#include "base/notreached.h"
#include "mojo/public/cpp/system/simple_watcher.h"
#include "net/base/ip_endpoint.h"
#include "net/base/net_errors.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_throw_dom_exception.h"
#include "third_party/blink/renderer/core/streams/readable_stream.h"
#include "third_party/blink/renderer/core/streams/readable_stream_byob_request.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_array_buffer.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_array_piece.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_typed_array.h"
#include "third_party/blink/renderer/modules/direct_sockets/stream_wrapper.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/bindings/script_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/heap/persistent.h"
namespace blink {
TCPReadableStreamWrapper::TCPReadableStreamWrapper(
ScriptState* script_state,
CloseOnceCallback on_close,
mojo::ScopedDataPipeConsumerHandle handle)
: … { … }
void TCPReadableStreamWrapper::Trace(Visitor* visitor) const { … }
void TCPReadableStreamWrapper::OnHandleReady(MojoResult result,
const mojo::HandleSignalsState&) { … }
void TCPReadableStreamWrapper::Pull() { … }
void TCPReadableStreamWrapper::CloseStream() { … }
void TCPReadableStreamWrapper::ErrorStream(int32_t error_code) { … }
void TCPReadableStreamWrapper::ResetPipe() { … }
void TCPReadableStreamWrapper::Dispose() { … }
void TCPReadableStreamWrapper::OnHandleReset(MojoResult result,
const mojo::HandleSignalsState&) { … }
}