#include "chrome/browser/predictors/network_hints_handler_impl.h"
#include <optional>
#include "base/memory/ptr_util.h"
#include "chrome/browser/predictors/loading_predictor.h"
#include "chrome/browser/predictors/loading_predictor_factory.h"
#include "chrome/browser/predictors/preconnect_manager.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "net/base/isolation_info.h"
namespace predictors {
namespace {
net::NetworkAnonymizationKey GetPendingNetworkAnonymizationKey(
content::RenderFrameHost* render_frame_host) { … }
}
NetworkHintsHandlerImpl::~NetworkHintsHandlerImpl() = default;
void NetworkHintsHandlerImpl::Create(
content::RenderFrameHost* frame_host,
mojo::PendingReceiver<network_hints::mojom::NetworkHintsHandler> receiver) { … }
void NetworkHintsHandlerImpl::PrefetchDNS(
const std::vector<url::SchemeHostPort>& urls) { … }
void NetworkHintsHandlerImpl::Preconnect(const url::SchemeHostPort& url,
bool allow_credentials) { … }
NetworkHintsHandlerImpl::NetworkHintsHandlerImpl(
content::RenderFrameHost* frame_host)
: … { … }
}