chromium/content/test/mock_client_hints_controller_delegate.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

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) {}

// Get which client hints opt-ins were persisted on current origin.
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() {}

}  // end namespace content