// 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. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FETCH_MULTIPART_PARSER_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_FETCH_MULTIPART_PARSER_H_ #include "base/check_op.h" #include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/platform/heap/garbage_collected.h" #include "third_party/blink/renderer/platform/heap/member.h" #include "third_party/blink/renderer/platform/network/http_header_map.h" #include "third_party/blink/renderer/platform/wtf/allocator/allocator.h" #include "third_party/blink/renderer/platform/wtf/vector.h" namespace blink { // This class parses a multipart message which is supplied (possible in chunks) // to MultipartParser::appendData which parses the data and passes resulting // part header fields and data to Client. // // - MultipartParser::appendData does not accept base64, quoted-printable nor // otherwise transfer encoded multipart message parts (no-op transfer // encodings "binary", "7bit" and "8bit" are OK). // - If MultipartParser::cancel() is called, Client's methods will not be // called anymore. class CORE_EXPORT MultipartParser final : public GarbageCollected<MultipartParser> { … }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_CORE_FETCH_MULTIPART_PARSER_H_