#include "content/browser/devtools/protocol/io_handler.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/memory/ref_counted_memory.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "content/browser/blob_storage/chrome_blob_storage_context.h"
#include "content/browser/devtools/devtools_io_context.h"
#include "content/browser/devtools/devtools_stream_blob.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
namespace content {
namespace protocol {
IOHandler::IOHandler(DevToolsIOContext* io_context)
: … { … }
IOHandler::~IOHandler() = default;
void IOHandler::Wire(UberDispatcher* dispatcher) { … }
void IOHandler::SetRenderer(int process_host_id,
RenderFrameHostImpl* frame_host) { … }
void IOHandler::Read(
const std::string& handle,
Maybe<int> offset,
Maybe<int> max_size,
std::unique_ptr<ReadCallback> callback) { … }
void IOHandler::ReadComplete(std::unique_ptr<ReadCallback> callback,
std::unique_ptr<std::string> data,
bool base64_encoded,
int status) { … }
Response IOHandler::Close(const std::string& handle) { … }
}
}