#include "content/public/common/referrer.h"
#include <atomic>
#include <string>
#include "base/command_line.h"
#include "base/numerics/safe_conversions.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "mojo/public/cpp/bindings/enum_utils.h"
#include "net/base/features.h"
#include "net/url_request/url_request_job.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/mojom/referrer_policy.mojom-shared.h"
#include "third_party/blink/public/common/loader/network_utils.h"
#include "third_party/blink/public/common/loader/referrer_utils.h"
#include "third_party/blink/public/mojom/loader/referrer.mojom.h"
namespace content {
Referrer::Referrer(const blink::mojom::Referrer& referrer)
: … { … }
Referrer Referrer::SanitizeForRequest(const GURL& request,
const Referrer& referrer) { … }
blink::mojom::ReferrerPtr Referrer::SanitizeForRequest(
const GURL& request,
const blink::mojom::Referrer& referrer) { … }
url::Origin Referrer::SanitizeOriginForRequest(
const GURL& request,
const url::Origin& initiator,
network::mojom::ReferrerPolicy policy) { … }
net::ReferrerPolicy Referrer::ReferrerPolicyForUrlRequest(
network::mojom::ReferrerPolicy referrer_policy) { … }
network::mojom::ReferrerPolicy Referrer::ConvertToPolicy(int32_t policy) { … }
}