#include "chrome/browser/sessions/session_restore_stats_collector.h"
#include <string>
#include "base/metrics/histogram_macros.h"
#include "base/strings/stringprintf.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
namespace {
RenderWidgetHost;
RenderWidgetHostView;
WebContents;
SessionRestoreStatsCollector* g_instance = …;
RenderWidgetHost* GetRenderWidgetHost(WebContents* web_contents) { … }
}
SessionRestoreStatsCollector::TabLoaderStats::TabLoaderStats()
: … { … }
SessionRestoreStatsCollector::SessionRestoreStatsCollector(
const base::TimeTicks& restore_started,
std::unique_ptr<StatsReportingDelegate> reporting_delegate)
: … { … }
SessionRestoreStatsCollector::~SessionRestoreStatsCollector() { … }
SessionRestoreStatsCollector* SessionRestoreStatsCollector::GetOrCreateInstance(
base::TimeTicks restore_started,
std::unique_ptr<StatsReportingDelegate> reporting_delegate) { … }
void SessionRestoreStatsCollector::TrackTabs(
const std::vector<SessionRestoreDelegate::RestoredTab>& tabs) { … }
void SessionRestoreStatsCollector::RenderWidgetHostVisibilityChanged(
content::RenderWidgetHost* widget_host,
bool became_visible) { … }
void SessionRestoreStatsCollector::RenderWidgetHostDidUpdateVisualProperties(
content::RenderWidgetHost* widget_host) { … }
void SessionRestoreStatsCollector::RenderWidgetHostDestroyed(
content::RenderWidgetHost* widget_host) { … }
void SessionRestoreStatsCollector::RegisterObserverForTab(WebContents* tab) { … }
void SessionRestoreStatsCollector::ReportStatsAndSelfDestroy() { … }
SessionRestoreStatsCollector::UmaStatsReportingDelegate::
UmaStatsReportingDelegate() = default;
void SessionRestoreStatsCollector::UmaStatsReportingDelegate::
ReportTabLoaderStats(const TabLoaderStats& tab_loader_stats) { … }