#ifndef CHROME_BROWSER_WEB_APPLICATIONS_TEST_SIGNED_WEB_BUNDLE_UTILS_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_TEST_SIGNED_WEB_BUNDLE_UTILS_H_
#include <memory>
#include "base/functional/callback_forward.h"
#include "components/web_package/mojom/web_bundle_parser.mojom-forward.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "net/base/net_errors.h"
namespace web_app {
class SignedWebBundleReader;
mojo::ScopedDataPipeConsumerHandle ReadResponseBody(
uint64_t response_length,
base::OnceCallback<void(mojo::ScopedDataPipeProducerHandle producer_handle,
base::OnceCallback<void(net::Error net_error)>)>
read_response_body_callback,
base::OnceCallback<void(net::Error)> on_response_read_callback);
std::string ReadAndFulfillResponseBody(
SignedWebBundleReader& reader,
web_package::mojom::BundleResponsePtr response);
std::string ReadAndFulfillResponseBody(
uint64_t response_length,
base::OnceCallback<void(mojo::ScopedDataPipeProducerHandle producer_handle,
base::OnceCallback<void(net::Error net_error)>)>
read_response_body_callback);
}
#endif