#include "net/base/network_delegate_impl.h"
#include <optional>
#include "net/base/net_errors.h"
#include "net/cookies/cookie_setting_override.h"
#include "net/cookies/cookie_util.h"
namespace net {
int NetworkDelegateImpl::OnBeforeURLRequest(URLRequest* request,
CompletionOnceCallback callback,
GURL* new_url) { … }
int NetworkDelegateImpl::OnBeforeStartTransaction(
URLRequest* request,
const HttpRequestHeaders& headers,
OnBeforeStartTransactionCallback callback) { … }
int NetworkDelegateImpl::OnHeadersReceived(
URLRequest* request,
CompletionOnceCallback callback,
const HttpResponseHeaders* original_response_headers,
scoped_refptr<HttpResponseHeaders>* override_response_headers,
const IPEndPoint& endpoint,
std::optional<GURL>* preserve_fragment_on_redirect_url) { … }
void NetworkDelegateImpl::OnBeforeRedirect(URLRequest* request,
const GURL& new_location) { … }
void NetworkDelegateImpl::OnBeforeRetry(URLRequest* request) { … }
void NetworkDelegateImpl::OnResponseStarted(URLRequest* request,
int net_error) { … }
void NetworkDelegateImpl::OnCompleted(URLRequest* request,
bool started,
int net_error) { … }
void NetworkDelegateImpl::OnURLRequestDestroyed(URLRequest* request) { … }
void NetworkDelegateImpl::OnPACScriptError(int line_number,
const std::u16string& error) { … }
bool NetworkDelegateImpl::OnAnnotateAndMoveUserBlockedCookies(
const URLRequest& request,
const net::FirstPartySetMetadata& first_party_set_metadata,
net::CookieAccessResultList& maybe_included_cookies,
net::CookieAccessResultList& excluded_cookies) { … }
bool NetworkDelegateImpl::OnCanSetCookie(
const URLRequest& request,
const net::CanonicalCookie& cookie,
CookieOptions* options,
const net::FirstPartySetMetadata& first_party_set_metadata,
CookieInclusionStatus* inclusion_status) { … }
std::optional<cookie_util::StorageAccessStatus>
NetworkDelegateImpl::OnGetStorageAccessStatus(const URLRequest& request) const { … }
NetworkDelegate::PrivacySetting NetworkDelegateImpl::OnForcePrivacyMode(
const URLRequest& request) const { … }
bool NetworkDelegateImpl::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
const URLRequest& request,
const GURL& target_url,
const GURL& referrer_url) const { … }
bool NetworkDelegateImpl::OnCanQueueReportingReport(
const url::Origin& origin) const { … }
void NetworkDelegateImpl::OnCanSendReportingReports(
std::set<url::Origin> origins,
base::OnceCallback<void(std::set<url::Origin>)> result_callback) const { … }
bool NetworkDelegateImpl::OnCanSetReportingClient(const url::Origin& origin,
const GURL& endpoint) const { … }
bool NetworkDelegateImpl::OnCanUseReportingClient(const url::Origin& origin,
const GURL& endpoint) const { … }
}