#include "chrome/browser/ui/webui/top_chrome/webui_contents_warmup_level_recorder.h"
#include "chrome/browser/ui/webui/top_chrome/webui_contents_preload_manager.h"
#include "chrome/browser/ui/webui/top_chrome/webui_contents_warmup_level.h"
#include "chrome/browser/ui/webui/top_chrome/webui_url_utils.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
namespace {
bool IsFirstWebContentsOnProcess(
const WebUIContentsWarmupLevelPreCondition& pre_condition,
content::WebContents* web_contents) { … }
}
WebUIContentsWarmupLevelPreCondition::WebUIContentsWarmupLevelPreCondition() =
default;
WebUIContentsWarmupLevelPreCondition&
WebUIContentsWarmupLevelPreCondition::operator=(
WebUIContentsWarmupLevelPreCondition&&) = default;
WebUIContentsWarmupLevelPreCondition::~WebUIContentsWarmupLevelPreCondition() =
default;
WebUIContentsWarmupLevelRecorder::WebUIContentsWarmupLevelRecorder() = default;
WebUIContentsWarmupLevelRecorder::~WebUIContentsWarmupLevelRecorder() = default;
void WebUIContentsWarmupLevelRecorder::BeforeContentsCreation() { … }
void WebUIContentsWarmupLevelRecorder::AfterContentsCreation(
content::WebContents* web_contents) { … }
void WebUIContentsWarmupLevelRecorder::SetUsedCachedContents(
bool used_cached_contents) { … }
WebUIContentsWarmupLevel WebUIContentsWarmupLevelRecorder::GetWarmupLevel()
const { … }