#include "components/web_package/web_bundle_parser_factory.h"
#include <optional>
#include "base/compiler_specific.h"
#include "base/functional/callback_helpers.h"
#include "components/web_package/web_bundle_parser.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "net/http/http_util.h"
#include "url/gurl.h"
namespace web_package {
namespace {
class FileDataSource final : public mojom::BundleDataSource { … };
}
WebBundleParserFactory::WebBundleParserFactory() = default;
WebBundleParserFactory::~WebBundleParserFactory() = default;
std::unique_ptr<mojom::BundleDataSource>
WebBundleParserFactory::CreateFileDataSourceForTesting(base::File file) { … }
void WebBundleParserFactory::GetParserForDataSource(
mojo::PendingReceiver<mojom::WebBundleParser> receiver,
const std::optional<GURL>& base_url,
mojo::PendingRemote<mojom::BundleDataSource> data_source) { … }
void WebBundleParserFactory::BindFileDataSource(
mojo::PendingReceiver<mojom::BundleDataSource> data_source_pending_receiver,
base::File file) { … }
}