#include "content/public/test/mock_client_hints_controller_delegate.h"
#include "content/public/common/origin_util.h"
#include "services/network/public/cpp/is_potentially_trustworthy.h"
#include "third_party/blink/public/common/user_agent/user_agent_metadata.h"
#include "ui/gfx/geometry/size_f.h"
#include "url/gurl.h"
namespace content {
namespace {
bool PersistClientHintsHelper(const GURL& url,
const blink::EnabledClientHints& client_hints,
ClientHintsContainer* container) { … }
void GetAllowedClientHintsFromSourceHelper(
const url::Origin& origin,
const ClientHintsContainer& container,
blink::EnabledClientHints* client_hints) { … }
}
MockClientHintsControllerDelegate::MockClientHintsControllerDelegate(
const blink::UserAgentMetadata& metadata)
: … { … }
MockClientHintsControllerDelegate::~MockClientHintsControllerDelegate() =
default;
network::NetworkQualityTracker*
MockClientHintsControllerDelegate::GetNetworkQualityTracker() { … }
bool MockClientHintsControllerDelegate::IsJavaScriptAllowed(
const GURL& url,
content::RenderFrameHost* parent_rfh) { … }
bool MockClientHintsControllerDelegate::AreThirdPartyCookiesBlocked(
const GURL& url,
content::RenderFrameHost* rfh) { … }
blink::UserAgentMetadata
MockClientHintsControllerDelegate::GetUserAgentMetadata() { … }
void MockClientHintsControllerDelegate::PersistClientHints(
const url::Origin& primary_origin,
content::RenderFrameHost* parent_rfh,
const std::vector<::network::mojom::WebClientHintsType>& client_hints) { … }
void MockClientHintsControllerDelegate::GetAllowedClientHintsFromSource(
const url::Origin& origin,
blink::EnabledClientHints* client_hints) { … }
void MockClientHintsControllerDelegate::ResetForTesting() { … }
void MockClientHintsControllerDelegate::SetAdditionalClientHints(
const std::vector<network::mojom::WebClientHintsType>& hints) { … }
void MockClientHintsControllerDelegate::ClearAdditionalClientHints() { … }
void MockClientHintsControllerDelegate::SetMostRecentMainFrameViewportSize(
const gfx::Size& viewport_size) { … }
gfx::Size
MockClientHintsControllerDelegate::GetMostRecentMainFrameViewportSize() { … }
}