#include "components/no_state_prefetch/renderer/no_state_prefetch_helper.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram_macros.h"
#include "components/no_state_prefetch/common/no_state_prefetch_url_loader_throttle.h"
#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_thread.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/public/web/web_local_frame.h"
namespace prerender {
NoStatePrefetchHelper::NoStatePrefetchHelper(
content::RenderFrame* render_frame,
const std::string& histogram_prefix)
: … { … }
NoStatePrefetchHelper::~NoStatePrefetchHelper() = default;
std::unique_ptr<blink::URLLoaderThrottle>
NoStatePrefetchHelper::MaybeCreateThrottle(
const blink::LocalFrameToken& frame_token) { … }
bool NoStatePrefetchHelper::IsPrefetching(
const content::RenderFrame* render_frame) { … }
void NoStatePrefetchHelper::DidDispatchDOMContentLoadedEvent() { … }
void NoStatePrefetchHelper::OnDestruct() { … }
void NoStatePrefetchHelper::AddThrottle(
NoStatePrefetchURLLoaderThrottle& throttle) { … }
void NoStatePrefetchHelper::OnThrottleDestroyed() { … }
void NoStatePrefetchHelper::SendPrefetchFinished() { … }
}