#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "content/browser/devtools/request_body_collector.h"
#include "base/containers/extend.h"
#include "base/memory/raw_ref.h"
#include "base/numerics/safe_conversions.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/public/cpp/system/data_pipe_drainer.h"
#include "net/base/net_errors.h"
#include "services/network/public/cpp/data_element.h"
#include "services/network/public/cpp/resource_request_body.h"
#include "services/network/public/mojom/data_pipe_getter.mojom.h"
namespace content {
class RequestBodyCollector::BodyReader : public mojo::DataPipeDrainer::Client { … };
std::unique_ptr<RequestBodyCollector> RequestBodyCollector::Collect(
const network::ResourceRequestBody& request_body,
CompletionCallback callback) { … }
RequestBodyCollector::~RequestBodyCollector() = default;
RequestBodyCollector::RequestBodyCollector() = default;
void RequestBodyCollector::OnReaderComplete(BodyReader* reader,
BodyEntry entry) { … }
}