chromium/components/speech/downstream_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/downstream_loader.h"

#include <string_view>

#include "base/functional/callback.h"
#include "components/speech/downstream_loader_client.h"
#include "services/network/public/mojom/url_response_head.mojom.h"

namespace speech {

DownstreamLoader::DownstreamLoader(
    std::unique_ptr<network::ResourceRequest> resource_request,
    net::NetworkTrafficAnnotationTag upstream_traffic_annotation,
    network::mojom::URLLoaderFactory* url_loader_factory,
    DownstreamLoaderClient* downstream_loader_client)
    :{}

DownstreamLoader::~DownstreamLoader() = default;

void DownstreamLoader::OnDataReceived(std::string_view string_piece,
                                      base::OnceClosure resume) {}

void DownstreamLoader::OnComplete(bool success) {}

void DownstreamLoader::OnRetry(base::OnceClosure start_retry) {}

}  // namespace speech