chromium/components/speech/upstream_loader.cc

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

#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;

// Attempts to send more of the upload body, if more data is available, and
// |upload_pipe_| is valid.
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) {}

}  // namespace speech