#include "third_party/blink/renderer/platform/loader/fetch/resource_request.h"
#include <memory>
#include "base/unguessable_token.h"
#include "net/base/request_priority.h"
#include "services/network/public/mojom/ip_address_space.mojom-blink.h"
#include "services/network/public/mojom/web_bundle_handle.mojom-blink.h"
#include "third_party/blink/public/common/permissions_policy/permissions_policy.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom-blink.h"
#include "third_party/blink/public/platform/web_url_request.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/network/network_utils.h"
#include "third_party/blink/renderer/platform/weborigin/referrer.h"
namespace blink {
ResourceRequestHead::WebBundleTokenParams&
ResourceRequestHead::WebBundleTokenParams::operator=(
const WebBundleTokenParams& other) { … }
ResourceRequestHead::WebBundleTokenParams::WebBundleTokenParams(
const WebBundleTokenParams& other) { … }
ResourceRequestHead::WebBundleTokenParams::WebBundleTokenParams(
const KURL& bundle_url,
const base::UnguessableToken& web_bundle_token,
mojo::PendingRemote<network::mojom::blink::WebBundleHandle>
web_bundle_handle)
: … { … }
mojo::PendingRemote<network::mojom::blink::WebBundleHandle>
ResourceRequestHead::WebBundleTokenParams::CloneHandle() const { … }
const base::TimeDelta ResourceRequestHead::default_timeout_interval_ = …;
ResourceRequestHead::ResourceRequestHead() : … { … }
ResourceRequestHead::ResourceRequestHead(const KURL& url)
: … { … }
ResourceRequestHead::ResourceRequestHead(const ResourceRequestHead&) = default;
ResourceRequestHead& ResourceRequestHead::operator=(
const ResourceRequestHead&) = default;
ResourceRequestHead::ResourceRequestHead(ResourceRequestHead&&) = default;
ResourceRequestHead& ResourceRequestHead::operator=(ResourceRequestHead&&) =
default;
ResourceRequestHead::~ResourceRequestHead() = default;
ResourceRequestBody::ResourceRequestBody() : … { … }
ResourceRequestBody::ResourceRequestBody(
scoped_refptr<EncodedFormData> form_body)
: … { … }
ResourceRequestBody::ResourceRequestBody(
mojo::PendingRemote<network::mojom::blink::ChunkedDataPipeGetter>
stream_body)
: … { … }
ResourceRequestBody::ResourceRequestBody(ResourceRequestBody&& src)
: … { … }
ResourceRequestBody& ResourceRequestBody::operator=(ResourceRequestBody&& src) =
default;
ResourceRequestBody::~ResourceRequestBody() = default;
void ResourceRequestBody::SetStreamBody(
mojo::PendingRemote<network::mojom::blink::ChunkedDataPipeGetter>
stream_body) { … }
ResourceRequest::ResourceRequest() : … { … }
ResourceRequest::ResourceRequest(const String& url_string)
: … { … }
ResourceRequest::ResourceRequest(const KURL& url) : … { … }
ResourceRequest::ResourceRequest(const ResourceRequestHead& head)
: … { … }
ResourceRequest::ResourceRequest(ResourceRequest&&) = default;
ResourceRequest& ResourceRequest::operator=(ResourceRequest&&) = default;
ResourceRequest::~ResourceRequest() = default;
void ResourceRequest::CopyHeadFrom(const ResourceRequestHead& src) { … }
std::unique_ptr<ResourceRequest> ResourceRequestHead::CreateRedirectRequest(
const KURL& new_url,
const AtomicString& new_method,
const net::SiteForCookies& new_site_for_cookies,
const String& new_referrer,
network::mojom::ReferrerPolicy new_referrer_policy,
bool skip_service_worker) const { … }
bool ResourceRequestHead::IsNull() const { … }
const KURL& ResourceRequestHead::Url() const { … }
void ResourceRequestHead::SetUrl(const KURL& url) { … }
void ResourceRequestHead::RemoveUserAndPassFromURL() { … }
mojom::blink::FetchCacheMode ResourceRequestHead::GetCacheMode() const { … }
void ResourceRequestHead::SetCacheMode(
mojom::blink::FetchCacheMode cache_mode) { … }
base::TimeDelta ResourceRequestHead::TimeoutInterval() const { … }
void ResourceRequestHead::SetTimeoutInterval(
base::TimeDelta timout_interval_seconds) { … }
const net::SiteForCookies& ResourceRequestHead::SiteForCookies() const { … }
void ResourceRequestHead::SetSiteForCookies(
const net::SiteForCookies& site_for_cookies) { … }
const SecurityOrigin* ResourceRequestHead::TopFrameOrigin() const { … }
void ResourceRequestHead::SetTopFrameOrigin(
scoped_refptr<const SecurityOrigin> origin) { … }
const AtomicString& ResourceRequestHead::HttpMethod() const { … }
void ResourceRequestHead::SetHttpMethod(const AtomicString& http_method) { … }
const HTTPHeaderMap& ResourceRequestHead::HttpHeaderFields() const { … }
const AtomicString& ResourceRequestHead::HttpHeaderField(
const AtomicString& name) const { … }
void ResourceRequestHead::SetHttpHeaderField(const AtomicString& name,
const AtomicString& value) { … }
void ResourceRequestHead::SetHTTPOrigin(const SecurityOrigin* origin) { … }
void ResourceRequestHead::ClearHTTPOrigin() { … }
void ResourceRequestHead::SetHttpOriginIfNeeded(const SecurityOrigin* origin) { … }
void ResourceRequestHead::SetHTTPOriginToMatchReferrerIfNeeded() { … }
void ResourceRequestHead::ClearHTTPUserAgent() { … }
void ResourceRequestBody::SetFormBody(
scoped_refptr<EncodedFormData> form_body) { … }
const scoped_refptr<EncodedFormData>& ResourceRequest::HttpBody() const { … }
void ResourceRequest::SetHttpBody(scoped_refptr<EncodedFormData> http_body) { … }
ResourceLoadPriority ResourceRequestHead::InitialPriority() const { … }
ResourceLoadPriority ResourceRequestHead::Priority() const { … }
int ResourceRequestHead::IntraPriorityValue() const { … }
bool ResourceRequestHead::PriorityHasBeenSet() const { … }
void ResourceRequestHead::SetPriority(ResourceLoadPriority priority,
int intra_priority_value) { … }
bool ResourceRequestHead::PriorityIncremental() const { … }
void ResourceRequestHead::SetPriorityIncremental(bool priority_incremental) { … }
void ResourceRequestHead::AddHttpHeaderField(const AtomicString& name,
const AtomicString& value) { … }
void ResourceRequestHead::AddHTTPHeaderFields(
const HTTPHeaderMap& header_fields) { … }
void ResourceRequestHead::ClearHttpHeaderField(const AtomicString& name) { … }
bool ResourceRequestHead::IsConditional() const { … }
void ResourceRequestHead::SetHasUserGesture(bool has_user_gesture) { … }
void ResourceRequestHead::SetHasTextFragmentToken(
bool has_text_fragment_token) { … }
bool ResourceRequestHead::CanDisplay(const KURL& url) const { … }
const CacheControlHeader& ResourceRequestHead::GetCacheControlHeader() const { … }
bool ResourceRequestHead::CacheControlContainsNoCache() const { … }
bool ResourceRequestHead::CacheControlContainsNoStore() const { … }
bool ResourceRequestHead::HasCacheValidatorFields() const { … }
bool ResourceRequestHead::NeedsHTTPOrigin() const { … }
bool ResourceRequest::IsFeatureEnabledForSubresourceRequestAssumingOptIn(
const PermissionsPolicy* policy,
mojom::blink::PermissionsPolicyFeature feature,
const url::Origin& origin) { … }
}