#include "ui/base/webui/i18n_source_stream.h"
#include <algorithm>
#include <utility>
#include "base/check.h"
#include "net/base/io_buffer.h"
namespace ui {
I18nSourceStream::~I18nSourceStream() { … }
std::unique_ptr<I18nSourceStream> I18nSourceStream::Create(
std::unique_ptr<SourceStream> upstream,
SourceStream::SourceType type,
const TemplateReplacements* replacements) { … }
I18nSourceStream::I18nSourceStream(std::unique_ptr<SourceStream> upstream,
SourceStream::SourceType type,
const TemplateReplacements* replacements)
: … { … }
std::string I18nSourceStream::GetTypeAsString() const { … }
base::expected<size_t, net::Error> I18nSourceStream::FilterData(
net::IOBuffer* output_buffer,
size_t output_buffer_size,
net::IOBuffer* input_buffer,
size_t input_buffer_size,
size_t* consumed_bytes,
bool upstream_end_reached) { … }
}