#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/core/loader/resource/multipart_image_resource_parser.h"
#include "base/ranges/algorithm.h"
#include "third_party/blink/renderer/platform/heap/visitor.h"
#include "third_party/blink/renderer/platform/network/http_parsers.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/wtf_size_t.h"
namespace blink {
MultipartImageResourceParser::MultipartImageResourceParser(
const ResourceResponse& response,
const Vector<char>& boundary,
Client* client)
: … { … }
void MultipartImageResourceParser::AppendData(const char* bytes,
wtf_size_t size) { … }
void MultipartImageResourceParser::Finish() { … }
wtf_size_t MultipartImageResourceParser::SkippableLength(
const Vector<char>& data,
wtf_size_t pos) { … }
bool MultipartImageResourceParser::ParseHeaders() { … }
wtf_size_t MultipartImageResourceParser::FindBoundary(const Vector<char>& data,
Vector<char>* boundary) { … }
void MultipartImageResourceParser::Trace(Visitor* visitor) const { … }
}