#include "components/speech/upstream_loader.h"
#include "base/containers/span.h"
#include "components/speech/upstream_loader_client.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
namespace speech {
UpstreamLoader::UpstreamLoader(
std::unique_ptr<network::ResourceRequest> resource_request,
net::NetworkTrafficAnnotationTag upstream_traffic_annotation,
network::mojom::URLLoaderFactory* url_loader_factory,
UpstreamLoaderClient* upstream_loader_client)
: … { … }
UpstreamLoader::~UpstreamLoader() = default;
void UpstreamLoader::SendData() { … }
void UpstreamLoader::AppendChunkToUpload(const std::string& data,
bool is_last_chunk) { … }
void UpstreamLoader::OnUploadPipeWriteable(MojoResult unused) { … }
void UpstreamLoader::OnComplete(std::unique_ptr<std::string> response_body) { … }
void UpstreamLoader::GetSize(GetSizeCallback get_size_callback) { … }
void UpstreamLoader::StartReading(mojo::ScopedDataPipeProducerHandle pipe) { … }
}