chromium/chrome/browser/ui/webui/top_chrome/webui_contents_warmup_level_recorder.cc

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

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

// Returns true if `web_contents` was the first Top Chrome WebContents
// created on its render process. This does not consider preloaded contents.
bool IsFirstWebContentsOnProcess(
    const WebUIContentsWarmupLevelPreCondition& pre_condition,
    content::WebContents* web_contents) {}

}  // namespace

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