chromium/third_party/blink/renderer/core/loader/resource/multipart_image_resource_parser.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#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() {}

// Boundaries are supposed to be preceeded with --, but it looks like gecko
// doesn't require the dashes to exist.  See nsMultiMixedConv::FindToken.
wtf_size_t MultipartImageResourceParser::FindBoundary(const Vector<char>& data,
                                                      Vector<char>* boundary) {}

void MultipartImageResourceParser::Trace(Visitor* visitor) const {}

}  // namespace blink