#include "third_party/blink/public/platform/web_url_request.h"
#include <memory>
#include "base/time/time.h"
#include "net/base/load_flags.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/cpp/optional_trust_token_params.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/public/platform/url_conversion.h"
#include "third_party/blink/public/platform/web_http_body.h"
#include "third_party/blink/public/platform/web_http_header_visitor.h"
#include "third_party/blink/public/platform/web_security_origin.h"
#include "third_party/blink/public/platform/web_url.h"
#include "third_party/blink/public/platform/web_url_request_extra_data.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_request.h"
#include "third_party/blink/renderer/platform/loader/fetch/trust_token_params_conversion.h"
#include "third_party/blink/renderer/platform/network/encoded_form_data.h"
#include "third_party/blink/renderer/platform/weborigin/referrer.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
FetchCacheMode;
namespace blink {
net::RequestPriority WebURLRequest::ConvertToNetPriority(
WebURLRequest::Priority priority) { … }
WebURLRequest::~WebURLRequest() = default;
WebURLRequest::WebURLRequest()
: … { … }
WebURLRequest::WebURLRequest(WebURLRequest&& src) { … }
WebURLRequest& WebURLRequest::operator=(WebURLRequest&& src) { … }
WebURLRequest::WebURLRequest(const WebURL& url) : … { … }
void WebURLRequest::CopyFrom(const WebURLRequest& r) { … }
bool WebURLRequest::IsNull() const { … }
WebURL WebURLRequest::Url() const { … }
void WebURLRequest::SetUrl(const WebURL& url) { … }
const net::SiteForCookies& WebURLRequest::SiteForCookies() const { … }
void WebURLRequest::SetSiteForCookies(
const net::SiteForCookies& site_for_cookies) { … }
std::optional<WebSecurityOrigin> WebURLRequest::TopFrameOrigin() const { … }
void WebURLRequest::SetTopFrameOrigin(const WebSecurityOrigin& origin) { … }
WebSecurityOrigin WebURLRequest::RequestorOrigin() const { … }
WebSecurityOrigin WebURLRequest::IsolatedWorldOrigin() const { … }
void WebURLRequest::SetRequestorOrigin(
const WebSecurityOrigin& requestor_origin) { … }
mojom::FetchCacheMode WebURLRequest::GetCacheMode() const { … }
void WebURLRequest::SetCacheMode(mojom::FetchCacheMode cache_mode) { … }
base::TimeDelta WebURLRequest::TimeoutInterval() const { … }
WebString WebURLRequest::HttpMethod() const { … }
void WebURLRequest::SetHttpMethod(const WebString& http_method) { … }
WebString WebURLRequest::HttpContentType() const { … }
bool WebURLRequest::IsFormSubmission() const { … }
WebString WebURLRequest::HttpHeaderField(const WebString& name) const { … }
void WebURLRequest::SetHttpHeaderField(const WebString& name,
const WebString& value) { … }
void WebURLRequest::AddHttpHeaderField(const WebString& name,
const WebString& value) { … }
void WebURLRequest::ClearHttpHeaderField(const WebString& name) { … }
void WebURLRequest::VisitHttpHeaderFields(WebHTTPHeaderVisitor* visitor) const { … }
WebHTTPBody WebURLRequest::HttpBody() const { … }
void WebURLRequest::SetHttpBody(const WebHTTPBody& http_body) { … }
bool WebURLRequest::ReportUploadProgress() const { … }
void WebURLRequest::SetReportUploadProgress(bool report_upload_progress) { … }
mojom::blink::RequestContextType WebURLRequest::GetRequestContext() const { … }
network::mojom::RequestDestination WebURLRequest::GetRequestDestination()
const { … }
void WebURLRequest::SetReferrerString(const WebString& referrer) { … }
void WebURLRequest::SetReferrerPolicy(
network::mojom::ReferrerPolicy referrer_policy) { … }
WebString WebURLRequest::ReferrerString() const { … }
network::mojom::ReferrerPolicy WebURLRequest::GetReferrerPolicy() const { … }
void WebURLRequest::SetHttpOriginIfNeeded(const WebSecurityOrigin& origin) { … }
bool WebURLRequest::HasUserGesture() const { … }
bool WebURLRequest::HasTextFragmentToken() const { … }
void WebURLRequest::SetHasUserGesture(bool has_user_gesture) { … }
void WebURLRequest::SetRequestContext(
mojom::blink::RequestContextType request_context) { … }
void WebURLRequest::SetRequestDestination(
network::mojom::RequestDestination destination) { … }
bool WebURLRequest::UseStreamOnResponse() const { … }
void WebURLRequest::SetUseStreamOnResponse(bool use_stream_on_response) { … }
bool WebURLRequest::GetKeepalive() const { … }
void WebURLRequest::SetKeepalive(bool keepalive) { … }
bool WebURLRequest::GetSkipServiceWorker() const { … }
void WebURLRequest::SetSkipServiceWorker(bool skip_service_worker) { … }
network::mojom::RequestMode WebURLRequest::GetMode() const { … }
void WebURLRequest::SetMode(network::mojom::RequestMode mode) { … }
bool WebURLRequest::GetFavicon() const { … }
void WebURLRequest::SetFavicon(bool) { … }
network::mojom::CredentialsMode WebURLRequest::GetCredentialsMode() const { … }
void WebURLRequest::SetCredentialsMode(network::mojom::CredentialsMode mode) { … }
network::mojom::RedirectMode WebURLRequest::GetRedirectMode() const { … }
void WebURLRequest::SetRedirectMode(network::mojom::RedirectMode redirect) { … }
const scoped_refptr<WebURLRequestExtraData>&
WebURLRequest::GetURLRequestExtraData() const { … }
void WebURLRequest::SetURLRequestExtraData(
scoped_refptr<WebURLRequestExtraData> extra_data) { … }
bool WebURLRequest::IsDownloadToNetworkCacheOnly() const { … }
void WebURLRequest::SetDownloadToNetworkCacheOnly(bool download_to_cache_only) { … }
ResourceRequest& WebURLRequest::ToMutableResourceRequest() { … }
WebURLRequest::Priority WebURLRequest::GetPriority() const { … }
void WebURLRequest::SetPriority(WebURLRequest::Priority priority) { … }
network::mojom::CorsPreflightPolicy WebURLRequest::GetCorsPreflightPolicy()
const { … }
std::optional<WebString> WebURLRequest::GetSuggestedFilename() const { … }
bool WebURLRequest::IsAdResource() const { … }
void WebURLRequest::SetUpgradeIfInsecure(bool upgrade_if_insecure) { … }
bool WebURLRequest::UpgradeIfInsecure() const { … }
bool WebURLRequest::SupportsAsyncRevalidation() const { … }
bool WebURLRequest::IsRevalidating() const { … }
const std::optional<base::UnguessableToken>& WebURLRequest::GetDevToolsToken()
const { … }
const WebString WebURLRequest::GetRequestedWithHeader() const { … }
void WebURLRequest::SetRequestedWithHeader(const WebString& value) { … }
const WebString WebURLRequest::GetPurposeHeader() const { … }
const base::UnguessableToken& WebURLRequest::GetFetchWindowId() const { … }
void WebURLRequest::SetFetchWindowId(const base::UnguessableToken& id) { … }
int WebURLRequest::GetLoadFlagsForWebUrlRequest() const { … }
const ResourceRequest& WebURLRequest::ToResourceRequest() const { … }
std::optional<WebString> WebURLRequest::GetDevToolsId() const { … }
bool WebURLRequest::IsFromOriginDirtyStyleSheet() const { … }
std::optional<base::UnguessableToken> WebURLRequest::RecursivePrefetchToken()
const { … }
network::OptionalTrustTokenParams WebURLRequest::TrustTokenParams() const { … }
std::optional<WebURL> WebURLRequest::WebBundleUrl() const { … }
std::optional<base::UnguessableToken> WebURLRequest::WebBundleToken() const { … }
WebURLRequest::WebURLRequest(ResourceRequest& r) : … { … }
}