#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/core/fetch/bytes_consumer_tee.h"
#include <string.h>
#include <algorithm>
#include "base/memory/scoped_refptr.h"
#include "base/numerics/safe_conversions.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/fetch/blob_bytes_consumer.h"
#include "third_party/blink/renderer/core/fetch/form_data_bytes_consumer.h"
#include "third_party/blink/renderer/platform/blob/blob_data.h"
#include "third_party/blink/renderer/platform/heap/collection_support/heap_deque.h"
#include "third_party/blink/renderer/platform/heap/persistent.h"
#include "third_party/blink/renderer/platform/loader/fetch/bytes_consumer.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "v8/include/v8.h"
namespace blink {
namespace {
class NoopClient final : public GarbageCollected<NoopClient>,
public BytesConsumer::Client { … };
class TeeHelper final : public GarbageCollected<TeeHelper>,
public BytesConsumer::Client { … };
}
void BytesConsumerTee(ExecutionContext* execution_context,
BytesConsumer* src,
BytesConsumer** dest1,
BytesConsumer** dest2) { … }
}