chromium/components/web_package/web_bundle_utils.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/web_package/web_bundle_utils.h"

#include <string_view>

#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/uuid.h"
#include "components/web_package/mojom/web_bundle_parser.mojom.h"
#include "net/http/http_status_code.h"
#include "net/http/http_util.h"
#include "services/network/public/mojom/url_response_head.mojom.h"

namespace web_package {

namespace {

constexpr char kContentTypeOptionsHeaderName[] =;
constexpr char kCrLf[] =;
constexpr char kNoSniffHeaderValue[] =;

}  // namespace

network::mojom::URLResponseHeadPtr CreateResourceResponse(
    const web_package::mojom::BundleResponsePtr& response) {}

std::string CreateHeaderString(
    const web_package::mojom::BundleResponsePtr& response) {}

network::mojom::URLResponseHeadPtr CreateResourceResponseFromHeaderString(
    const std::string& header_string) {}

bool HasNoSniffHeader(const network::mojom::URLResponseHead& response) {}

bool IsValidUuidInPackageURL(const GURL& url) {}

}  // namespace web_package