#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/sessions/session_restore_delegate.h"
#include <stddef.h>
#include <utility>
#include "base/metrics/field_trial.h"
#include "chrome/browser/sessions/session_restore_stats_collector.h"
#include "chrome/browser/sessions/tab_loader.h"
#include "chrome/common/url_constants.h"
#include "components/favicon/content/content_favicon_driver.h"
#include "components/performance_manager/public/features.h"
#include "components/performance_manager/public/graph/policies/background_tab_loading_policy.h"
#include "components/tab_groups/tab_group_id.h"
#include "components/tab_groups/tab_group_visual_data.h"
#include "content/public/browser/web_contents.h"
namespace {
bool IsInternalPage(const GURL& url) { … }
}
SessionRestoreDelegate::RestoredTab::RestoredTab(
content::WebContents* contents,
bool is_active,
bool is_app,
bool is_pinned,
const std::optional<tab_groups::TabGroupId>& group)
: … { … }
SessionRestoreDelegate::RestoredTab::RestoredTab(const RestoredTab&) = default;
SessionRestoreDelegate::RestoredTab&
SessionRestoreDelegate::RestoredTab::operator=(const RestoredTab&) = default;
SessionRestoreDelegate::RestoredTab::~RestoredTab() = default;
bool SessionRestoreDelegate::RestoredTab::operator<(
const RestoredTab& right) const { … }
void SessionRestoreDelegate::RestoreTabs(
const std::vector<RestoredTab>& tabs,
const base::TimeTicks& restore_started) { … }