#include "content/browser/devtools/devtools_stream_pipe.h"
#include "base/base64.h"
#include "base/containers/span.h"
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
namespace content {
struct DevToolsStreamPipe::ReadRequest { … };
scoped_refptr<DevToolsStreamPipe> DevToolsStreamPipe::Create(
DevToolsIOContext* context,
mojo::ScopedDataPipeConsumerHandle pipe,
bool is_binary) { … }
DevToolsStreamPipe::DevToolsStreamPipe(DevToolsIOContext* context,
mojo::ScopedDataPipeConsumerHandle pipe,
bool is_binary)
: … { … }
DevToolsStreamPipe::~DevToolsStreamPipe() = default;
bool DevToolsStreamPipe::SupportsSeek() const { … }
void DevToolsStreamPipe::Read(off_t position,
size_t max_size,
ReadCallback callback) { … }
void DevToolsStreamPipe::OnPipeSignalled(
MojoResult result,
const mojo::HandleSignalsState& state) { … }
void DevToolsStreamPipe::DispatchResponse() { … }
void DevToolsStreamPipe::DispatchEOFOrError(bool is_eof) { … }
}