#include "third_party/blink/public/web/web_navigation_params.h"
#include "base/uuid.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/navigation/navigation_params.h"
#include "third_party/blink/public/platform/modules/service_worker/web_service_worker_network_provider.h"
#include "third_party/blink/renderer/platform/loader/static_data_navigation_body_loader.h"
#include "third_party/blink/renderer/platform/network/encoded_form_data.h"
#include "third_party/blink/renderer/platform/network/http_names.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
namespace blink {
WebNavigationParams::WebNavigationParams()
: … { … }
WebNavigationParams::~WebNavigationParams() = default;
WebNavigationParams::WebNavigationParams(
const blink::DocumentToken& document_token,
const base::UnguessableToken& devtools_navigation_token,
const base::Uuid& base_auction_nonce)
: … { … }
std::unique_ptr<WebNavigationParams> WebNavigationParams::CreateFromInfo(
const WebNavigationInfo& info) { … }
std::unique_ptr<WebNavigationParams>
WebNavigationParams::CreateWithEmptyHTMLForTesting(const WebURL& base_url) { … }
std::unique_ptr<WebNavigationParams>
WebNavigationParams::CreateWithHTMLStringForTesting(base::span<const char> html,
const WebURL& base_url) { … }
void WebNavigationParams::FillBodyLoader(WebNavigationParams* params,
base::span<const char> data) { … }
void WebNavigationParams::FillBodyLoader(WebNavigationParams* params,
WebData data) { … }
void WebNavigationParams::FillStaticResponse(WebNavigationParams* params,
WebString mime_type,
WebString text_encoding,
base::span<const char> data) { … }
void WebNavigationParams::FillStaticResponse(WebNavigationParams* params,
WebString mime_type,
WebString text_encoding,
SharedBuffer* data) { … }
WebNavigationParams::PrefetchedSignedExchange::PrefetchedSignedExchange() =
default;
WebNavigationParams::PrefetchedSignedExchange::~PrefetchedSignedExchange() =
default;
WebNavigationParams::PrefetchedSignedExchange::PrefetchedSignedExchange(
const WebURL& outer_url,
const WebString& header_integrity,
const WebURL& inner_url,
const WebURLResponse& inner_response,
CrossVariantMojoRemote<network::mojom::URLLoaderFactoryInterfaceBase>
loader_factory)
: … { … }
}